tasn pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=de1a7759fac1ae37b47b02b4b4bf390bcf318b3e

commit de1a7759fac1ae37b47b02b4b4bf390bcf318b3e
Author: Tom Hacohen <t...@stosb.com>
Date:   Tue Apr 12 15:45:10 2016 +0100

    Eina matrix/vector tests: pass correct pointers to arrays.
    
    Clang (rightfully) complained about passing double ** where we should have
    passed a double *.
---
 src/tests/eina/eina_test_matrix.c | 6 +++---
 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 1a0d9ae..a2f6d9c 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 4a7e3ff..3617f7f 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);

-- 


Reply via email to