aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/qcommon/vm.c')
-rw-r--r--code/qcommon/vm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/code/qcommon/vm.c b/code/qcommon/vm.c
index 2193e03..d5bb3aa 100644
--- a/code/qcommon/vm.c
+++ b/code/qcommon/vm.c
@@ -718,11 +718,12 @@ long QDECL VM_Call( vm_t *vm, long callnum, ... ) {
args[12], args[13], args[14], args[15]);
#if defined(HAVE_VM_COMPILED)
} else if ( vm->compiled ) {
- r = VM_CallCompiled( vm, &callnum );
+ // only used on 32bit machines so this cast is fine
+ r = VM_CallCompiled( vm, (int*)&callnum );
#endif
} else {
struct {
- long callnum;
+ int callnum;
int args[16];
} a;
va_list ap;
@@ -852,7 +853,7 @@ void VM_LogSyscalls( int *args ) {
f = fopen("syscalls.log", "w" );
}
callnum++;
- fprintf(f, "%i: %li (%i) = %i %i %i %i\n", callnum, (long)( args - (int *)currentVM->dataBase ),
+ fprintf(f, "%i: %li (%i) = %i %i %i %i\n", callnum, (long)(args - (int *)currentVM->dataBase),
args[0], args[1], args[2], args[3], args[4] );
}