Mercurial > hg > openttd
changeset 14920:318687bcdb40 draft
(svn r19517) -Fix (r19516): compile before commit (a gcc warning was hidden)
author | glx <glx@openttd.org> |
---|---|
date | Wed, 24 Mar 2010 21:30:12 +0000 |
parents | 25ceff3979f1 |
children | 173ee42296f5 |
files | src/misc/str.hpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/misc/str.hpp +++ b/src/misc/str.hpp @@ -100,7 +100,7 @@ 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;