diff options
author | Cedric Borgese <cedric.borgese@gmail.com> | 2005-09-30 15:51:53 +0000 |
---|---|---|
committer | Cedric Borgese <cedric.borgese@gmail.com> | 2005-09-30 15:51:53 +0000 |
commit | 9c47ba3ff3ec99825317c884786e1a194d686921 (patch) | |
tree | 488b4684e7e9606e4f7d365d7c077b64a2fbf609 /src | |
parent | 5c5fb9634ccbd637ed7864a937c7214175f17a6d (diff) | |
download | mana-9c47ba3ff3ec99825317c884786e1a194d686921.tar.gz mana-9c47ba3ff3ec99825317c884786e1a194d686921.tar.bz2 mana-9c47ba3ff3ec99825317c884786e1a194d686921.tar.xz mana-9c47ba3ff3ec99825317c884786e1a194d686921.zip |
Avoid a warning on x86_64 arch because std::string:npos is a long and it differs from int on that arch.
Diffstat (limited to 'src')
-rw-r--r-- | src/game.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index 136fe347..a66de0b5 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1026,7 +1026,7 @@ void do_parse() { chatWindow->chat_log(chatMsg, BY_PLAYER); - unsigned int pos = chatMsg.find(" : ", 0); + unsigned long int pos = chatMsg.find(" : ", 0); if (pos != std::string::npos) { chatMsg.erase(0, pos + 3); |