summaryrefslogtreecommitdiff
path: root/cppcanvas
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-06-12 17:27:37 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-06-12 17:27:37 +0200
commitfdcd77cdd787b718b5146b5b01f90ef5a18b8117 (patch)
tree57cbf0b8be39108a2b3b7935fbcde8207d5115bf /cppcanvas
parenta274cbff7c138e110eba65f117df8d9cae3c4427 (diff)
warning C4305: 'argument' : truncation from 'double' to 'float'
Change-Id: Ieee74fd7e7cec65304dd5de9c1368f5449b66407
Diffstat (limited to 'cppcanvas')
-rw-r--r--cppcanvas/source/mtfrenderer/emfplus.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx
index c73d7f10268a..d3b58aa4b7ed 100644
--- a/cppcanvas/source/mtfrenderer/emfplus.cxx
+++ b/cppcanvas/source/mtfrenderer/emfplus.cxx
@@ -1328,10 +1328,10 @@ namespace cppcanvas
B2DSize mappedSize( MapSize (dw/2, dh/2));
float endAngle = startAngle + sweepAngle;
- startAngle = fmodf(startAngle, M_PI*2);
+ startAngle = fmodf(startAngle, static_cast<float>(M_PI*2));
if (startAngle < 0)
startAngle += static_cast<float>(M_PI*2);
- endAngle = fmodf(endAngle, M_PI*2);
+ endAngle = fmodf(endAngle, static_cast<float>(M_PI*2));
if (endAngle < 0)
endAngle += static_cast<float>(M_PI*2);