From 7e071fe0719e42fee4507fd063059e203825c723 Mon Sep 17 00:00:00 2001 From: ludwig Date: Tue, 30 Aug 2005 15:36:17 +0000 Subject: make FloatSwap less ugly git-svn-id: svn://svn.icculus.org/quake3/trunk@31 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/game/q_shared.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'code/game') diff --git a/code/game/q_shared.c b/code/game/q_shared.c index 6d35493..928332f 100644 --- a/code/game/q_shared.c +++ b/code/game/q_shared.c @@ -180,11 +180,10 @@ typedef union { } _FloatByteUnion; float FloatSwap (const float *f) { - const _FloatByteUnion *in; _FloatByteUnion out; - in = (_FloatByteUnion *)f; - out.i = LongSwap(in->i); + out.f = *f; + out.i = LongSwap(out.i); return out.f; } -- cgit v1.2.3