summaryrefslogtreecommitdiff
path: root/src/client/cl_ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/cl_ui.c')
-rw-r--r--src/client/cl_ui.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/client/cl_ui.c b/src/client/cl_ui.c
index c0d4e729..49719824 100644
--- a/src/client/cl_ui.c
+++ b/src/client/cl_ui.c
@@ -631,11 +631,9 @@ FloatAsInt
====================
*/
static int FloatAsInt( float f ) {
- int temp;
-
- *(float *)&temp = f;
-
- return temp;
+ floatint_t fi;
+ fi.f = f;
+ return fi.i;
}
/*