aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ScalarTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ScalarTest.cpp b/tests/ScalarTest.cpp
index 6b7fe6bfa0..b6f71d19bc 100644
--- a/tests/ScalarTest.cpp
+++ b/tests/ScalarTest.cpp
@@ -13,7 +13,7 @@
#include "Test.h"
static void test_roundtoint(skiatest::Reporter* reporter) {
- SkScalar x = 0.49999997;
+ SkScalar x = 0.49999997f;
int ix = SkScalarRoundToInt(x);
// We "should" get 0, since x < 0.5, but we don't due to float addition rounding up the low
// bit after adding 0.5.