diff --git a/tests/MathTest.cpp b/tests/MathTest.cpp index 11e47d761..a7ecfa1c7 100644 --- a/tests/MathTest.cpp +++ b/tests/MathTest.cpp @@ -19,7 +19,7 @@ static float sk_fsel(float pred, float result_ge, float result_lt) { static float fast_floor(float x) { // float big = sk_fsel(x, 0x1.0p+23, -0x1.0p+23); float big = sk_fsel(x, (float)(1 << 23), -(float)(1 << 23)); - return (x + big) - big; + return (float)(x + big) - big; } static float std_floor(float x) {