r1480 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Nov 3 12:03:44 EST 2008


Author: ludwig
Date: 2008-11-03 12:03:44 -0500 (Mon, 03 Nov 2008)
New Revision: 1480

Modified:
   trunk/code/qcommon/qcommon.h
Log:
fix 64bit VM interface to work on ppc64 (#3838)

Modified: trunk/code/qcommon/qcommon.h
===================================================================
--- trunk/code/qcommon/qcommon.h	2008-11-02 17:39:25 UTC (rev 1479)
+++ trunk/code/qcommon/qcommon.h	2008-11-03 17:03:44 UTC (rev 1480)
@@ -357,10 +357,10 @@
 static ID_INLINE float _vmf(intptr_t x)
 {
 	union {
-		intptr_t l;
+		int i;
 		float f;
 	} t;
-	t.l = x;
+	t.i = (int)x;
 	return t.f;
 }
 #define	VMF(x)	_vmf(args[x])




More information about the quake3-commits mailing list