fix double->float warning
git-svn-id: http://skia.googlecode.com/svn/trunk@14568 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/ScalarTest.cpp b/tests/ScalarTest.cpp
index 6b7fe6b..b6f71d1 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.