proper casting

Originally committed to SVN as r769.
This commit is contained in:
David Lamparter 2007-01-11 04:06:55 +00:00
parent 1e4a5b8050
commit 3784a131dd
1 changed files with 2 additions and 2 deletions

View File

@ -884,8 +884,8 @@ void AssDialogueBlockDrawing::MultiplyCoords(double x,double y) {
if (cur.IsNumber()) { if (cur.IsNumber()) {
// Multiply it // Multiply it
cur.ToLong(&temp); cur.ToLong(&temp);
if (isX) temp = long int(temp*x + 0.5); if (isX) temp = (long int)(temp*x + 0.5);
else temp = long int(temp*y + 0.5); else temp = (long int)(temp*y + 0.5);
// Write back to list // Write back to list
final += wxString::Format(_T("%i "),temp); final += wxString::Format(_T("%i "),temp);