summaryrefslogtreecommitdiff
path: root/src/qcommon/vm.c
diff options
context:
space:
mode:
authorThilo Schulz <arny@ats.s.bawue.de>2011-06-01 15:17:18 +0000
committerTim Angus <tim@ngus.net>2013-01-09 22:37:40 +0000
commit22f9847cfff218661fc36d48bcc28117dec5cd14 (patch)
tree01b5b4e541849b9e5184bded4b2f836439eee74a /src/qcommon/vm.c
parent55232ad01e1a0a44aabda3d3aeb4764a9ecae822 (diff)
- Add x86_64 support to vm_x86.c - Fix warning on mingw64
Diffstat (limited to 'src/qcommon/vm.c')
-rw-r--r--src/qcommon/vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qcommon/vm.c b/src/qcommon/vm.c
index 37db8b02..5476a085 100644
--- a/src/qcommon/vm.c
+++ b/src/qcommon/vm.c
@@ -576,7 +576,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;