r234 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Nov 2 15:58:27 EST 2005


Author: ludwig
Date: 2005-11-02 15:58:27 -0500 (Wed, 02 Nov 2005)
New Revision: 234

Modified:
   trunk/code/qcommon/vm.c
Log:
pass only 10 arguments. vm_* doesn't use more anyways.


Modified: trunk/code/qcommon/vm.c
===================================================================
--- trunk/code/qcommon/vm.c	2005-11-02 20:56:13 UTC (rev 233)
+++ trunk/code/qcommon/vm.c	2005-11-02 20:58:27 UTC (rev 234)
@@ -332,7 +332,7 @@
 long QDECL VM_DllSyscall( long arg, ... ) {
 #if ((defined __GNUC__) && !(defined __i386__))
   // rcg010206 - see commentary above
-  long args[16];
+  long args[10];
   int i;
   va_list ap;
   
@@ -726,7 +726,7 @@
 	// if we have a dll loaded, call it directly
 	if ( vm->entryPoint ) {
 		//rcg010207 -  see dissertation at top of VM_DllSyscall() in this file.
-		long args[16];
+		long args[10];
 		va_list ap;
 		va_start(ap, callnum);
 		for (i = 0; i < sizeof (args) / sizeof (args[i]); i++) {




More information about the quake3-commits mailing list