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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/code/qcommon/vm.c b/code/qcommon/vm.c
index 3ec8221..2193e03 100644
--- a/code/qcommon/vm.c
+++ b/code/qcommon/vm.c
@@ -722,7 +722,7 @@ long QDECL VM_Call( vm_t *vm, long callnum, ... ) {
#endif
} else {
struct {
- int callnum;
+ long callnum;
int args[16];
} a;
va_list ap;
@@ -852,7 +852,7 @@ void VM_LogSyscalls( int *args ) {
f = fopen("syscalls.log", "w" );
}
callnum++;
- fprintf(f, "%i: %li (%i) = %i %i %i %i\n", callnum, 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] );
}