summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Borgese <cedric.borgese@gmail.com>2005-09-30 15:51:53 +0000
committerCedric Borgese <cedric.borgese@gmail.com>2005-09-30 15:51:53 +0000
commit9c47ba3ff3ec99825317c884786e1a194d686921 (patch)
tree488b4684e7e9606e4f7d365d7c077b64a2fbf609
parent5c5fb9634ccbd637ed7864a937c7214175f17a6d (diff)
downloadmana-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.
-rw-r--r--src/game.cpp2
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);