From c034a5216e1c9a583ea9f633c9d5b0a801f1cd1b Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Sun, 13 Jul 2014 18:57:04 +0200 Subject: use floatint_t --- src/cgame/cg_syscalls.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cgame/cg_syscalls.c') diff --git a/src/cgame/cg_syscalls.c b/src/cgame/cg_syscalls.c index 4765751d..16e01b8f 100644 --- a/src/cgame/cg_syscalls.c +++ b/src/cgame/cg_syscalls.c @@ -38,9 +38,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 ) -- cgit