aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon
diff options
context:
space:
mode:
authorludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-11-03 17:03:44 +0000
committerludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-11-03 17:03:44 +0000
commit5502af97628223ea8f5192647cb1dd5dbd72ae3b (patch)
tree1b1ce39368f1c458c70944c22d4d5e684c27a052 /code/qcommon
parent6a7a9814cbfa32d011eead273fe1562a97ea9451 (diff)
downloadioquake3-aero-5502af97628223ea8f5192647cb1dd5dbd72ae3b.tar.gz
ioquake3-aero-5502af97628223ea8f5192647cb1dd5dbd72ae3b.zip
fix 64bit VM interface to work on ppc64 (#3838)
git-svn-id: svn://svn.icculus.org/quake3/trunk@1480 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/qcommon')
-rw-r--r--code/qcommon/qcommon.h4
1 files changed, 2 insertions, 2 deletions
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])