summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-12 11:51:58 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-12 11:51:58 +0300
commitfde88ed49f0f822979b9a7529e3311496fcb042e (patch)
tree9515e9c63c5d9e68cc486a9456297c6771ddf777 /src
parent32bf97c611eb92d3ecb64a0532e881922dd87109 (diff)
downloadplus-fde88ed49f0f822979b9a7529e3311496fcb042e.tar.gz
plus-fde88ed49f0f822979b9a7529e3311496fcb042e.tar.bz2
plus-fde88ed49f0f822979b9a7529e3311496fcb042e.tar.xz
plus-fde88ed49f0f822979b9a7529e3311496fcb042e.zip
Fix compilation error in big endian system.
Diffstat (limited to 'src')
-rw-r--r--src/net/tmwa/network.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/tmwa/network.cpp b/src/net/tmwa/network.cpp
index dbc4ff97e..a03cd617e 100644
--- a/src/net/tmwa/network.cpp
+++ b/src/net/tmwa/network.cpp
@@ -479,7 +479,7 @@ void Network::setError(const std::string &error)
Uint16 Network::readWord(int pos)
{
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
- return SDL_Swap16((*static_cast<Uint16*>(mInBuffer + (pos))));
+ return SDL_Swap16((Uint16*)(mInBuffer + (pos)));
#else
return (*reinterpret_cast<Uint16*>(mInBuffer + (pos)));
#endif