diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-04-21 07:05:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-04-23 03:31:27 +0300 |
commit | a946678bc7f37475ecef5b4282a77bc4e0f1afa7 (patch) | |
tree | 6a755ab178b932d7761ab76a64dd33c62373d700 /src/net/messagein.cpp | |
parent | deef43ce3342df308cd19c9ff37a2e953ed31cf1 (diff) | |
download | manaverse-a946678bc7f37475ecef5b4282a77bc4e0f1afa7.tar.gz manaverse-a946678bc7f37475ecef5b4282a77bc4e0f1afa7.tar.bz2 manaverse-a946678bc7f37475ecef5b4282a77bc4e0f1afa7.tar.xz manaverse-a946678bc7f37475ecef5b4282a77bc4e0f1afa7.zip |
Add cast into macro toInt for old compilers.
Diffstat (limited to 'src/net/messagein.cpp')
-rw-r--r-- | src/net/messagein.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/messagein.cpp b/src/net/messagein.cpp index 1226102d7..5b942a2d0 100644 --- a/src/net/messagein.cpp +++ b/src/net/messagein.cpp @@ -189,7 +189,7 @@ int32_t MessageIn::readInt32(const char *const str) uint32_t MessageIn::readUInt32(const char *const str) { - uint32_t value = -1; + uint32_t value = 0; if (mPos + 4 <= mLength) { #if SDL_BYTEORDER == SDL_BIG_ENDIAN |