Commit 5b994882 authored by hybrid's avatar hybrid

Fix another strict-aliasing warning.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2815 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 54f4ed0a
......@@ -38,7 +38,7 @@ namespace os
s16 Byteswap::byteswap(s16 num) {return bswap_16(num);}
u32 Byteswap::byteswap(u32 num) {return bswap_32(num);}
s32 Byteswap::byteswap(s32 num) {return bswap_32(num);}
f32 Byteswap::byteswap(f32 num) {u32 tmp=bswap_32(*((u32*)&num)); return *((f32*)&tmp);}
f32 Byteswap::byteswap(f32 num) {u32 tmp=bswap_32(IR(num)); return (FR(tmp));}
// prevent accidental byte swapping of chars
u8 Byteswap::byteswap(u8 num) {return num;}
c8 Byteswap::byteswap(c8 num) {return num;}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment