Kaydet (Commit) fdcd77cd authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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

Change-Id: Ieee74fd7e7cec65304dd5de9c1368f5449b66407
üst a274cbff
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment