From 930127da85ee72ccec6b81efc18cc9878f11d88d Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 7 Jun 2013 20:54:33 +0200 Subject: cppcanvas: try to make MSVC tinderbox happy Change-Id: If4fd5a788d3907a986e27f5f53d5995c7035f685 --- cppcanvas/source/mtfrenderer/emfplus.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cppcanvas') diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx index 14670a4ad6f1..47b98bb72875 100644 --- a/cppcanvas/source/mtfrenderer/emfplus.cxx +++ b/cppcanvas/source/mtfrenderer/emfplus.cxx @@ -1343,12 +1343,12 @@ namespace cppcanvas B2DSize mappedSize( MapSize (dw/2, dh/2)); float endAngle = startAngle + sweepAngle; - startAngle = fmod (startAngle, M_PI*2); + startAngle = fmodf(startAngle, M_PI*2); if (startAngle < 0) - startAngle += M_PI*2; - endAngle = fmod (endAngle, M_PI*2); + startAngle += static_cast(M_PI*2); + endAngle = fmodf(endAngle, M_PI*2); if (endAngle < 0) - endAngle += M_PI*2; + endAngle += static_cast(M_PI*2); if (sweepAngle < 0) std::swap (endAngle, startAngle); -- cgit v1.2.3