From 22f9847cfff218661fc36d48bcc28117dec5cd14 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Wed, 1 Jun 2011 15:17:18 +0000 Subject: - Add x86_64 support to vm_x86.c - Fix warning on mingw64 --- src/qcommon/vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qcommon/vm.c') 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; -- cgit