diff options
author | 2014-05-05 16:32:16 +0000 | |
---|---|---|
committer | 2014-05-05 16:32:16 +0000 | |
commit | 3253f8360540453d21a7cbe9def4fbd8f876d8e1 (patch) | |
tree | 5cf8d199cb97990e87a35fad81da68ffd9e5810d /tests | |
parent | ec7d673999b473e873dae0181b30a26f0c48b18e (diff) |
fix double->float warning
git-svn-id: http://skia.googlecode.com/svn/trunk@14568 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ScalarTest.cpp | 2 |
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. |