diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2011-06-02 23:49:49 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2011-06-03 11:03:25 -0600 |
commit | 894038adf52a3e2b42542239a147d6c1cc1ad204 (patch) | |
tree | b881994e4605bcf0ba2d1df68068a78fb21ecf01 /src/net/manaserv/messagein.cpp | |
parent | d50f35d13e73b72eae1d744971657bd665aa1f33 (diff) | |
download | mana-894038adf52a3e2b42542239a147d6c1cc1ad204.tar.gz mana-894038adf52a3e2b42542239a147d6c1cc1ad204.tar.bz2 mana-894038adf52a3e2b42542239a147d6c1cc1ad204.tar.xz mana-894038adf52a3e2b42542239a147d6c1cc1ad204.zip |
Cleanup network code to use unsigned integers of the relevant size
Diffstat (limited to 'src/net/manaserv/messagein.cpp')
-rw-r--r-- | src/net/manaserv/messagein.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/manaserv/messagein.cpp b/src/net/manaserv/messagein.cpp index 592182f7..128dd14f 100644 --- a/src/net/manaserv/messagein.cpp +++ b/src/net/manaserv/messagein.cpp @@ -32,9 +32,9 @@ MessageIn::MessageIn(const char *data, unsigned int length): mId = readInt16(); } -int MessageIn::readInt16() +Uint16 MessageIn::readInt16() { - int value = -1; + Uint16 value = 0; if (mPos + 2 <= mLength) { uint16_t t; @@ -45,9 +45,9 @@ int MessageIn::readInt16() return value; } -int MessageIn::readInt32() +Uint32 MessageIn::readInt32() { - int value = -1; + Uint32 value = 0; if (mPos + 4 <= mLength) { uint32_t t; |