From f86f8e8ed864e99eed4468a0e3654215d45f7817 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Mon, 3 Nov 2008 17:03:44 +0000 Subject: [PATCH] fix 64bit VM interface to work on ppc64 (#3838) --- code/qcommon/qcommon.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/qcommon/qcommon.h b/code/qcommon/qcommon.h index 381da64c..5838bf75 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])