forked from mia/Aegisub
proper casting
Originally committed to SVN as r769.
This commit is contained in:
parent
1e4a5b8050
commit
3784a131dd
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue