fix 64bit VM interface to work on ppc64 (#3838)

This commit is contained in:
Ludwig Nussel 2008-11-03 17:03:44 +00:00
parent 1e02c641bc
commit f86f8e8ed8

View file

@ -357,10 +357,10 @@ void *VM_ExplicitArgPtr( vm_t *vm, intptr_t intValue );
static ID_INLINE float _vmf(intptr_t x) static ID_INLINE float _vmf(intptr_t x)
{ {
union { union {
intptr_t l; int i;
float f; float f;
} t; } t;
t.l = x; t.i = (int)x;
return t.f; return t.f;
} }
#define VMF(x) _vmf(args[x]) #define VMF(x) _vmf(args[x])