warning C4305: 'argument' : truncation from 'double' to 'float'

Change-Id: Ieee74fd7e7cec65304dd5de9c1368f5449b66407
This commit is contained in:
Stephan Bergmann 2013-06-12 17:27:37 +02:00
parent a274cbff7c
commit fdcd77cdd7

View File

@ -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);