summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/misc/str.hpp2
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;