mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-24 13:11:30 +00:00
pass only 10 arguments. vm_* doesn't use more anyways.
This commit is contained in:
parent
d29dfeeb75
commit
3ce5d5dccd
1 changed files with 2 additions and 3 deletions
|
@ -736,8 +736,7 @@ long QDECL VM_Call( vm_t *vm, long callnum, ... ) {
|
||||||
|
|
||||||
r = vm->entryPoint( callnum, args[0], args[1], args[2], args[3],
|
r = vm->entryPoint( callnum, args[0], args[1], args[2], args[3],
|
||||||
args[4], args[5], args[6], args[7],
|
args[4], args[5], args[6], args[7],
|
||||||
args[8], args[9], args[10], args[11],
|
args[8], args[9]);
|
||||||
args[12], args[13], args[14], args[15]);
|
|
||||||
} else {
|
} else {
|
||||||
#ifdef __i386__ // i386 calling convention doesn't need conversion
|
#ifdef __i386__ // i386 calling convention doesn't need conversion
|
||||||
#ifndef NO_VM_COMPILED
|
#ifndef NO_VM_COMPILED
|
||||||
|
@ -749,7 +748,7 @@ long QDECL VM_Call( vm_t *vm, long callnum, ... ) {
|
||||||
#else
|
#else
|
||||||
struct {
|
struct {
|
||||||
int callnum;
|
int callnum;
|
||||||
int args[16];
|
int args[10];
|
||||||
} a;
|
} a;
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue