aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmath/llcoordframe.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llmath/llcoordframe.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/linden/indra/llmath/llcoordframe.cpp b/linden/indra/llmath/llcoordframe.cpp
index 552854d..c7d18bb 100644
--- a/linden/indra/llmath/llcoordframe.cpp
+++ b/linden/indra/llmath/llcoordframe.cpp
@@ -460,26 +460,26 @@ void LLCoordFrame::getRotMatrixToParent(LLMatrix4& mat) const
460 460
461size_t LLCoordFrame::writeOrientation(char *buffer) const 461size_t LLCoordFrame::writeOrientation(char *buffer) const
462{ 462{
463 memcpy(buffer, mOrigin.mV, 3*sizeof(F32)); 463 memcpy(buffer, mOrigin.mV, 3*sizeof(F32)); /*Flawfinder: ignore */
464 buffer += 3*sizeof(F32); 464 buffer += 3*sizeof(F32);
465 memcpy(buffer, mXAxis.mV, 3*sizeof(F32)); 465 memcpy(buffer, mXAxis.mV, 3*sizeof(F32)); /*Flawfinder: ignore */
466 buffer += 3*sizeof(F32); 466 buffer += 3*sizeof(F32);
467 memcpy(buffer, mYAxis.mV, 3*sizeof(F32)); 467 memcpy(buffer, mYAxis.mV, 3*sizeof(F32));/*Flawfinder: ignore */
468 buffer += 3*sizeof(F32); 468 buffer += 3*sizeof(F32);
469 memcpy(buffer, mZAxis.mV, 3*sizeof(F32)); 469 memcpy(buffer, mZAxis.mV, 3*sizeof(F32)); /*Flawfinder: ignore */
470 return 12*sizeof(F32); 470 return 12*sizeof(F32);
471} 471}
472 472
473 473
474size_t LLCoordFrame::readOrientation(const char *buffer) 474size_t LLCoordFrame::readOrientation(const char *buffer)
475{ 475{
476 memcpy(mOrigin.mV, buffer, 3*sizeof(F32)); 476 memcpy(mOrigin.mV, buffer, 3*sizeof(F32)); /*Flawfinder: ignore */
477 buffer += 3*sizeof(F32); 477 buffer += 3*sizeof(F32);
478 memcpy(mXAxis.mV, buffer, 3*sizeof(F32)); 478 memcpy(mXAxis.mV, buffer, 3*sizeof(F32)); /*Flawfinder: ignore */
479 buffer += 3*sizeof(F32); 479 buffer += 3*sizeof(F32);
480 memcpy(mYAxis.mV, buffer, 3*sizeof(F32)); 480 memcpy(mYAxis.mV, buffer, 3*sizeof(F32)); /*Flawfinder: ignore */
481 buffer += 3*sizeof(F32); 481 buffer += 3*sizeof(F32);
482 memcpy(mZAxis.mV, buffer, 3*sizeof(F32)); 482 memcpy(mZAxis.mV, buffer, 3*sizeof(F32)); /*Flawfinder: ignore */
483 483
484 if( !isFinite() ) 484 if( !isFinite() )
485 { 485 {