fix 64bit VM interface to work on ppc64 (#3838)
This commit is contained in:
parent
1e02c641bc
commit
f86f8e8ed8
1 changed files with 2 additions and 2 deletions
|
@ -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])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue