From b31e8a67d9b1f11b9943b595a4fd66d3a07dd085 Mon Sep 17 00:00:00 2001 From: ludwig Date: Mon, 3 Nov 2008 17:03:54 +0000 Subject: fix strict aliasing issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by Przemysław Iskra (#3805) git-svn-id: svn://svn.icculus.org/quake3/trunk@1481 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/server/sv_game.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'code/server') diff --git a/code/server/sv_game.c b/code/server/sv_game.c index adf1f5a..7bfbf03 100644 --- a/code/server/sv_game.c +++ b/code/server/sv_game.c @@ -288,14 +288,9 @@ void SV_GetUsercmd( int clientNum, usercmd_t *cmd ) { //============================================== static int FloatAsInt( float f ) { - union - { - int i; - float f; - } temp; - - temp.f = f; - return temp.i; + floatint_t fi; + fi.f = f; + return fi.i; } /* -- cgit v1.2.3