summaryrefslogtreecommitdiff
path: root/src/game/g_syscalls.c
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2014-07-13 18:57:04 +0200
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:12 +0100
commitc034a5216e1c9a583ea9f633c9d5b0a801f1cd1b (patch)
tree767dafdf2b037462e61aef1c245dfe7199e4c46c /src/game/g_syscalls.c
parentc63bbf8000e75e5a3247f700bdf69a542e33d5ac (diff)
use floatint_t
Diffstat (limited to 'src/game/g_syscalls.c')
-rw-r--r--src/game/g_syscalls.c6
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 )