diff options
author | Tom Hacohen <tom@stosb.com> | 2016-04-12 15:45:10 +0100 |
---|---|---|
committer | Tom Hacohen <tom@stosb.com> | 2016-04-12 15:45:10 +0100 |
commit | de1a7759fac1ae37b47b02b4b4bf390bcf318b3e (patch) | |
tree | 4a0923eda8092cd0c8be6dcb51c058bd2c50e2ee | |
parent | 1d71d21d35baf9d02e7533e5c1a5c082d5d360bd (diff) | |
download | efl-de1a7759fac1ae37b47b02b4b4bf390bcf318b3e.tar.gz |
Eina matrix/vector tests: pass correct pointers to arrays.
Clang (rightfully) complained about passing double ** where we should have
passed a double *.
-rw-r--r-- | src/tests/eina/eina_test_matrix.c | 6 | ||||
-rw-r--r-- | src/tests/eina/eina_test_vector.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/tests/eina/eina_test_matrix.c b/src/tests/eina/eina_test_matrix.c index 1a0d9ae6d3..a2f6d9c97a 100644 --- a/src/tests/eina/eina_test_matrix.c +++ b/src/tests/eina/eina_test_matrix.c @@ -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, diff --git a/src/tests/eina/eina_test_vector.c b/src/tests/eina/eina_test_vector.c index 4a7e3ffe79..3617f7f011 100644 --- a/src/tests/eina/eina_test_vector.c +++ b/src/tests/eina/eina_test_vector.c @@ -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); |