From 51b0d0bc5c82f257dca244c864702c66d84100a2 Mon Sep 17 00:00:00 2001 From: "bungeman@google.com" Date: Tue, 15 Apr 2014 16:08:29 +0000 Subject: [PATCH] Add cast for warning as error on Windows from r14201. git-svn-id: http://skia.googlecode.com/svn/trunk@14202 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkFloatingPoint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/core/SkFloatingPoint.h b/include/core/SkFloatingPoint.h index 95c28bc..6e372d9 100644 --- a/include/core/SkFloatingPoint.h +++ b/include/core/SkFloatingPoint.h @@ -40,7 +40,7 @@ static inline float sk_float_copysign(float x, float y) { // Visual studio prior to 13 only has 'double _copysign(double, double)'. #elif defined(_MSC_VER) - return _copysign(x, y); + return (float)_copysign(x, y); // Otherwise convert to bits and extract sign. #else -- 2.7.4