diff options
| author | Jesse Jaara <jesse.jaara@gmail.com> | 2012-10-06 16:52:48 (GMT) |
|---|---|---|
| committer | Jesse Jaara <jesse.jaara@gmail.com> | 2012-10-06 16:52:48 (GMT) |
| commit | ec413dd0571b664bcb38394b566643a80a5b9eaf (patch) | |
| tree | 49befa60f2c423f87becb2c93ab577e2bb240ace /src/pim/Machine.cpp | |
| parent | c7ca6caf3087ab8927c98db645fa02d564f73a7e (diff) | |
| download | powder-ec413dd0571b664bcb38394b566643a80a5b9eaf.zip powder-ec413dd0571b664bcb38394b566643a80a5b9eaf.tar.gz | |
Fix an error that prevents building on 64bit systems.
Diffstat (limited to 'src/pim/Machine.cpp')
| -rw-r--r-- | src/pim/Machine.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pim/Machine.cpp b/src/pim/Machine.cpp index aebe093..a954d31 100644 --- a/src/pim/Machine.cpp +++ b/src/pim/Machine.cpp @@ -424,20 +424,20 @@ namespace pim //Load value at base stack + offset into eax emit("8B 85"); //mov eax [ebp+ram+offset] - emit((int) (ram - argument.Integer)); + emit((intptr_t) (ram - argument.Integer)); //Store value in eax onto top of program stack emit("89 07"); //mov [edi], eax - emit((int) (ram)); + emit((intptr_t) (ram)); break; case Opcode::Store: //Load value on top of the program stack into eax emit("8B 07"); //mov eax [edi] - emit((int) (ram)); + emit((intptr_t) (ram)); //Load value in eax onto top of program stack emit("89 85"); //mov [ebp+ram+offset], eax - emit((int) (ram - argument.Integer)); + emit((intptr_t) (ram - argument.Integer)); emit("83 C7 04"); //add edi 4 break; @@ -634,4 +634,4 @@ namespace pim programCounter = entryPoint; Run(); } -}
\ No newline at end of file +} |
