Eina matrix/vector tests: pass correct pointers to arrays.

Clang (rightfully) complained about passing double ** where we should have
passed a double *.
This commit is contained in:
Tom Hacohen 2016-04-12 15:45:10 +01:00
parent 1d71d21d35
commit de1a7759fa
2 changed files with 5 additions and 5 deletions

View File

@ -83,7 +83,7 @@ START_TEST(eina_matrix2_operation)
xy != yx ||
xy != 0);
eina_matrix2_array_set(&m1, &arr);
eina_matrix2_array_set(&m1, arr);
eina_matrix2_values_get(&m1,
&xx, &xy,
&yx, &yy);
@ -260,7 +260,7 @@ START_TEST(eina_matrix4_operation)
wx != xx ||
ww != zy);
eina_matrix4_array_set(&m1, &arr);
eina_matrix4_array_set(&m1, arr);
eina_matrix4_values_get(&m1,
&xx, &xy, &xz, &xw,
&yx, &yy, &yz, &yw,
@ -575,7 +575,7 @@ START_TEST(eina_matrix3_operations)
yx != 1 || yy != 1 || yz != 1 ||
zx != 0 || zy != 0 || zz != 0);
eina_matrix3_array_set(&m1, &arr);
eina_matrix3_array_set(&m1, arr);
eina_matrix3_values_get(&m1,
&xx, &xy, &xz,
&yx, &yy, &yz,

View File

@ -45,7 +45,7 @@ START_TEST(eina_test_vector2_operations)
eina_vector2_set(&v1, x, y);
fail_if((v1.x != 1) || (v1.y != 2));
eina_vector2_array_set(&v2, &arr);
eina_vector2_array_set(&v2, arr);
fail_if((v2.x != 5) || (v2.y != 5));
eina_vector2_copy(&v1, &v2);
@ -131,7 +131,7 @@ START_TEST(eina_test_vector3_operations)
eina_vector3_set(&v1, x, y, z);
fail_if((v1.x != 1) || (v1.y != 2) || (v1.z != 3));
eina_vector3_array_set(&v2, &arr);
eina_vector3_array_set(&v2, arr);
fail_if((v2.x != 5) || (v2.y != 5) || (v2.z != 5));
eina_vector3_copy(&v1, &v2);