Fix some more of size_t and unsigned ints in DALi API
[platform/core/uifw/dali-core.git] / dali / public-api / math / matrix.cpp
index 81630cd..18107c1 100644 (file)
@@ -20,7 +20,8 @@
 
 // EXTERNAL INCLUDES
 #include <cmath>
-#include <cstring> // for memcpy
+#include <cstdint> // uint32_t
+#include <cstring> // memcpy
 #include <ostream>
 
 // INTERNAL INCLUDES
@@ -35,12 +36,12 @@ namespace
 {
 const float ROTATION_EPSILON = 0.003f; // Deliberately large
 
-const size_t NUM_BYTES_IN_ROW_OF_3( 3 * sizeof( float ) );
-const size_t NUM_BYTES_IN_ROW( 4 * sizeof( float ) );
-const size_t NUM_BYTES_IN_MATRIX( 16 * sizeof( float ) );
-const size_t ROW1_OFFSET( 4 );
-const size_t ROW2_OFFSET( 8 );
-const size_t ROW3_OFFSET( 12 );
+const uint32_t NUM_BYTES_IN_ROW_OF_3( 3 * sizeof( float ) );
+const uint32_t NUM_BYTES_IN_ROW( 4 * sizeof( float ) );
+const uint32_t NUM_BYTES_IN_MATRIX( 16 * sizeof( float ) );
+const uint32_t ROW1_OFFSET( 4 );
+const uint32_t ROW2_OFFSET( 8 );
+const uint32_t ROW3_OFFSET( 12 );
 
 /**
  * Helper to convert to Quaternion to float16 array