From 892ded1f97bfac606637b4ce3f7f03d228038752 Mon Sep 17 00:00:00 2001 From: Luca Wresch Date: Mon, 24 Jun 2024 16:49:14 +0200 Subject: [PATCH] fixed warnings --- src/test.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/test.c b/src/test.c index af8dcf8..a2abac3 100644 --- a/src/test.c +++ b/src/test.c @@ -314,7 +314,7 @@ void testScaling() { scaling(&result, &test); - printTest("Scaling", (sumDiffAny(&expectedResult, &result, 4, 4) < EPSILON)); + printTest("Scaling", (sumDiffAny((GLfloat*)&expectedResult, (GLfloat*)&result, 4, 4) < EPSILON)); } void testRotationZ() { @@ -338,7 +338,7 @@ void testRotationZ() { rotationZ(&result, a); - printTest("RotationZ", (sumDiffAny(&expectedResult, &result, 4, 4) < EPSILON)); + printTest("RotationZ", (sumDiffAny((GLfloat*)&expectedResult, (GLfloat*)&result, 4, 4) < EPSILON)); } @@ -363,7 +363,7 @@ void testRotationY() { rotationY(&result, a); - printTest("RotationY", (sumDiffAny(&expectedResult, &result, 4, 4) < EPSILON)); + printTest("RotationY", (sumDiffAny((GLfloat*)&expectedResult, (GLfloat*)&result, 4, 4) < EPSILON)); } void testRotationX() { @@ -387,7 +387,7 @@ void testRotationX() { rotationX(&result, a); - printTest("RotationX", (sumDiffAny(&expectedResult, &result, 4, 4) < EPSILON)); + printTest("RotationX", (sumDiffAny((GLfloat*)&expectedResult, (GLfloat*)&result, 4, 4) < EPSILON)); } void testMultiplyAny() { @@ -404,7 +404,7 @@ void testMultiplyAny() { GLfloat expectedResult[4] = {76, 100, 103, 136}; - multiplyAny(&result, &matrix1, &matrix2, 3, 2, 2); + multiplyAny((GLfloat*)&result, (GLfloat*)&matrix1, (GLfloat*)&matrix2, 3, 2, 2); printTest("Multiply Any", sumDiffAny(result, expectedResult, 2, 2) < EPSILON); } @@ -414,9 +414,9 @@ void testAnyTranspose() { mat3 M = {1, 2, 3, 4, 5, 6, 7, 8, 9}; mat3 target = {1, 4, 7, 2, 5, 8, 3, 6, 9}; - transposeAny(&M, &M, 3, 3); + transposeAny((GLfloat*)&M, (GLfloat*)&M, 3, 3); - printTest("Transpose Any", mat3SumDiff(&M, &target) < EPSILON); + printTest("Transpose Any", mat3SumDiff((mat3*)&M, (mat3*)&target) < EPSILON); } void testTranslate() {