From 3784a131dd505fe478d7e9def540c1d2733d7982 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Thu, 11 Jan 2007 04:06:55 +0000 Subject: [PATCH] proper casting Originally committed to SVN as r769. --- aegisub/ass_dialogue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/ass_dialogue.cpp b/aegisub/ass_dialogue.cpp index 2bccc0019..6baafecd5 100644 --- a/aegisub/ass_dialogue.cpp +++ b/aegisub/ass_dialogue.cpp @@ -884,8 +884,8 @@ void AssDialogueBlockDrawing::MultiplyCoords(double x,double y) { if (cur.IsNumber()) { // Multiply it cur.ToLong(&temp); - if (isX) temp = long int(temp*x + 0.5); - else temp = long int(temp*y + 0.5); + if (isX) temp = (long int)(temp*x + 0.5); + else temp = (long int)(temp*y + 0.5); // Write back to list final += wxString::Format(_T("%i "),temp);