diff options
author | glx <glx@openttd.org> | 2010-03-24 21:30:12 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2010-03-24 21:30:12 +0000 |
commit | 7bd95ed04e85f4b77893952d05b004fcd9446ee7 (patch) | |
tree | a2d5d778a0c52a433a23e7da424456b177054151 /src | |
parent | a89fcf53b6e4650fe7f0365e27778ce29d6230d2 (diff) | |
download | openttd-7bd95ed04e85f4b77893952d05b004fcd9446ee7.tar.xz |
(svn r19517) -Fix (r19516): compile before commit (a gcc warning was hidden)
Diffstat (limited to 'src')
-rw-r--r-- | src/misc/str.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/str.hpp b/src/misc/str.hpp index de6672031..ad1d85f62 100644 --- a/src/misc/str.hpp +++ b/src/misc/str.hpp @@ -100,7 +100,7 @@ struct CStrA : public CBlobT<char> for (;;) { char *buf = MakeFreeSpace(addSize); ret = vsnprintf(buf, base::GetReserve(), format, args); - if (ret >= base::GetReserve()) { + if (ret >= (int)base::GetReserve()) { /* Greater return than given count means needed buffer size. */ addSize = ret + 1; continue; |