From 3253f8360540453d21a7cbe9def4fbd8f876d8e1 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Mon, 5 May 2014 16:32:16 +0000 Subject: fix double->float warning git-svn-id: http://skia.googlecode.com/svn/trunk@14568 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/ScalarTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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. -- cgit v1.2.3