diff options
Diffstat (limited to 'code/cgame')
-rw-r--r-- | code/cgame/cg_syscalls.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/code/cgame/cg_syscalls.c b/code/cgame/cg_syscalls.c index 758d1b4..cdc1060 100644 --- a/code/cgame/cg_syscalls.c +++ b/code/cgame/cg_syscalls.c @@ -37,9 +37,9 @@ 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 ) { |