From ad4cf84255a8c430f00887718a8eb2bd01835dff Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sat, 21 Apr 2007 23:20:36 +0000 Subject: [PATCH] Maybe fix compile on windows. (Part III) --- stepmania/src/lua-5.1/src/lundump.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stepmania/src/lua-5.1/src/lundump.c b/stepmania/src/lua-5.1/src/lundump.c index 858eff08c1..9c2bfcacee 100644 --- a/stepmania/src/lua-5.1/src/lundump.c +++ b/stepmania/src/lua-5.1/src/lundump.c @@ -78,11 +78,11 @@ static lua_Number LoadNumber(LoadState* S) if (!S->flip) return x; #ifdef LUA_NUMBER_DOUBLE - union { double d; struct { uint32_t l; uint32_t h; } i; } u; + union { double d; uint32_t i[2]; } u; u.d = x; - uint32_t temp = Swap32(u.i.l); - u.i.l = Swap32(u.i.h); - u.i.h = temp; + uint32_t temp = Swap32(u.i[0]); + u.i[0] = Swap32(u.i[1]); + u.i[1] = temp; return u.d; #else union { float f; uint32_t i } u;