r191 - trunk/code/qcommon

Tim Angus tim at ngus.net
Thu Oct 27 18:47:22 EDT 2005


On 27 Oct 2005 18:38:25 -0400 DONOTREPLY at icculus.org wrote:
> Author: tma
> Date: 2005-10-27 18:38:25 -0400 (Thu, 27 Oct 2005)
> New Revision: 191
> 
> Modified:
>    trunk/code/qcommon/vm.c
> Log:
> * Fix the x86 vm
> 
> 
> Modified: trunk/code/qcommon/vm.c
> ===================================================================
> --- trunk/code/qcommon/vm.c	2005-10-27 22:05:38 UTC (rev 190)
> +++ trunk/code/qcommon/vm.c	2005-10-27 22:38:25 UTC (rev 191)
> @@ -749,10 +749,10 @@
>  #ifdef __i386__ // i386 calling convention doesn't need conversion
>  #if defined(HAVE_VM_COMPILED)
>  		if ( vm->compiled )
> -			r = VM_CallCompiled( vm, (int*)callnum );
> +			r = VM_CallCompiled( vm, (int*)&callnum );
>  		else
>  #endif
> -			r = VM_CallInterpreted( vm, (int*)callnum );
> +			r = VM_CallInterpreted( vm, (int*)&callnum );
>  #else
>  		struct {
>  			int callnum;

Perhaps we should just use the platform independant calling convention
on x86 too? I can't imagine it being that expensive in practical terms.



More information about the quake3 mailing list