From 5502af97628223ea8f5192647cb1dd5dbd72ae3b Mon Sep 17 00:00:00 2001 From: ludwig Date: Mon, 3 Nov 2008 17:03:44 +0000 Subject: fix 64bit VM interface to work on ppc64 (#3838) git-svn-id: svn://svn.icculus.org/quake3/trunk@1480 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/qcommon/qcommon.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'code/qcommon/qcommon.h') diff --git a/code/qcommon/qcommon.h b/code/qcommon/qcommon.h index 381da64..5838bf7 100644 --- a/code/qcommon/qcommon.h +++ b/code/qcommon/qcommon.h @@ -357,10 +357,10 @@ void *VM_ExplicitArgPtr( vm_t *vm, intptr_t intValue ); 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]) -- cgit v1.2.3