diff options
Diffstat (limited to 'src/game/g_syscalls.c')
-rw-r--r-- | src/game/g_syscalls.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/g_syscalls.c b/src/game/g_syscalls.c index 5622249e..1b278cda 100644 --- a/src/game/g_syscalls.c +++ b/src/game/g_syscalls.c @@ -36,9 +36,9 @@ Q_EXPORT void dllEntry( intptr_t (QDECL *syscallptr)( intptr_t arg,... ) ) int PASSFLOAT( float x ) { - float floatTemp; - floatTemp = x; - return *(int *)&floatTemp; + floatint_t fi; + fi.f = x; + return fi.i; } void trap_Print( const char *fmt ) |