diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-16 00:27:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-16 00:32:49 +0300 |
commit | 2ed0917b4ee942ff55639500f846ae9cb4f48b90 (patch) | |
tree | 431158e61d703a747115088e1b084651c923e0dd /src/gui/whoisonline.cpp | |
parent | 875ece90ff94c4cf295b53c8bb37d9238ece38e9 (diff) | |
download | manaverse-2ed0917b4ee942ff55639500f846ae9cb4f48b90.tar.gz manaverse-2ed0917b4ee942ff55639500f846ae9cb4f48b90.tar.bz2 manaverse-2ed0917b4ee942ff55639500f846ae9cb4f48b90.tar.xz manaverse-2ed0917b4ee942ff55639500f846ae9cb4f48b90.zip |
Fix some signed/unsigned chars issues.
Diffstat (limited to 'src/gui/whoisonline.cpp')
-rw-r--r-- | src/gui/whoisonline.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp index 68ea0f67b..d71b595fe 100644 --- a/src/gui/whoisonline.cpp +++ b/src/gui/whoisonline.cpp @@ -411,7 +411,8 @@ void WhoIsOnline::loadWebList() level = 0; OnlinePlayer *player = new OnlinePlayer(nick, - static_cast<char>(255), level, GENDER_UNSPECIFIED, -1); + static_cast<signed char>(255), level, + GENDER_UNSPECIFIED, -1); mOnlinePlayers.insert(player); mOnlineNicks.insert(nick); @@ -477,7 +478,7 @@ size_t WhoIsOnline::memoryWrite(void *ptr, size_t size, WhoIsOnline *wio = reinterpret_cast<WhoIsOnline *>(stream); const size_t totalMem = size * nmemb; wio->mMemoryBuffer = static_cast<char*>(realloc(wio->mMemoryBuffer, - wio->mDownloadedBytes + totalMem)); + wio->mDownloadedBytes + totalMem)); if (wio->mMemoryBuffer) { memcpy(&(wio->mMemoryBuffer[wio->mDownloadedBytes]), ptr, totalMem); |