- Fix for "uWorld.s:4736:8: error: base register is 64-bit, but index register is not leal (%rax,%edx),%eax" ios-revival
authorantonc27 <antonc27@mail.ru>
Sat, 08 Aug 2015 22:02:31 +0200
branchios-revival
changeset 11090 874e477700d5
parent 11089 9e30ed87f966
child 11091 217199fb275b
- Fix for "uWorld.s:4736:8: error: base register is 64-bit, but index register is not leal (%rax,%edx),%eax" Note: I love this kind of errors ]:->
hedgewars/uWorld.pas
--- a/hedgewars/uWorld.pas	Sat Aug 08 21:58:28 2015 +0200
+++ b/hedgewars/uWorld.pas	Sat Aug 08 22:02:31 2015 +0200
@@ -1148,7 +1148,7 @@
 procedure ShiftWorld(Dir: LongInt); inline;
 begin
     preShiftWorldDx:= WorldDx;
-    WorldDx:= WorldDx + Dir * LongInt(playWidth);
+    WorldDx:= WorldDx + LongInt(Dir * LongInt(playWidth));
 
 end;