summaryrefslogtreecommitdiff
path: root/src/net/messageout.cpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2011-06-02 23:49:49 -0700
committerJared Adams <jaxad0127@gmail.com>2011-06-03 11:03:25 -0600
commit894038adf52a3e2b42542239a147d6c1cc1ad204 (patch)
treeb881994e4605bcf0ba2d1df68068a78fb21ecf01 /src/net/messageout.cpp
parentd50f35d13e73b72eae1d744971657bd665aa1f33 (diff)
downloadmana-client-894038adf52a3e2b42542239a147d6c1cc1ad204.tar.gz
mana-client-894038adf52a3e2b42542239a147d6c1cc1ad204.tar.bz2
mana-client-894038adf52a3e2b42542239a147d6c1cc1ad204.tar.xz
mana-client-894038adf52a3e2b42542239a147d6c1cc1ad204.zip
Cleanup network code to use unsigned integers of the relevant size
Diffstat (limited to 'src/net/messageout.cpp')
-rw-r--r--src/net/messageout.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/messageout.cpp b/src/net/messageout.cpp
index 0ac63935..5663e1df 100644
--- a/src/net/messageout.cpp
+++ b/src/net/messageout.cpp
@@ -33,7 +33,7 @@ MessageOut::MessageOut(short id):
{
}
-void MessageOut::writeInt8(Sint8 value)
+void MessageOut::writeInt8(Uint8 value)
{
expand(1);
mData[mPos] = value;
@@ -57,7 +57,7 @@ void MessageOut::writeString(const std::string &string, int length)
expand(length);
// Write the actual string
- memcpy(mData + mPos, string.c_str(), stringLength);
+ memcpy(mData + mPos, string.data(), stringLength);
// Pad remaining space with zeros
if (length > stringLength)