- Add x86_64 support to vm_x86.c
- Fix warning on mingw64
This commit is contained in:
1 parent
3e229af710
commit
c174143dc2
10 files changed
+349
-94
No files matched your search
+1
-1
@@ -575,7 +575,7 @@ vm_t *VM_Create( const char *module, intptr_t (*systemCalls)(intptr_t *),
|
||||
|
||||
// allocate space for the jump targets, which will be filled in by the compile/prep functions
|
||||
vm->instructionCount = header->instructionCount;
|
||||
vm->instructionPointers = Hunk_Alloc( vm->instructionCount*4, h_high );
|
||||
vm->instructionPointers = Hunk_Alloc(vm->instructionCount * sizeof(*vm->instructionPointers), h_high);
|
||||
|
||||
// copy or compile the instructions
|
||||
vm->codeLength = header->codeLength;
|
||||
|
||||
Reference in new issue
Block a user