diff options
author | Jeff Garzik <jgarzik@exmulti.com> | 2012-04-23 21:33:29 -0700 |
---|---|---|
committer | Jeff Garzik <jgarzik@exmulti.com> | 2012-04-23 21:33:29 -0700 |
commit | c2e8c8acd8ae0c94c70b59f55169841ad195bb99 (patch) | |
tree | 13709f29a89f926f873c1e8eddc76ca22601aa5d /src/util.cpp | |
parent | ef758662c595ca866ca7abe320452d785373314b (diff) | |
parent | 735a60698c845f257a0f7e9b617d50669d9179d4 (diff) |
Merge pull request #1140 from jgarzik/sign-compare
Address many more sign comparison warnings
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index 7322b1e228..cd3d3b94a9 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -283,7 +283,7 @@ int my_snprintf(char* buffer, size_t limit, const char* format, ...) va_start(arg_ptr, format); int ret = _vsnprintf(buffer, limit, format, arg_ptr); va_end(arg_ptr); - if (ret < 0 || ret >= limit) + if (ret < 0 || ret >= (int)limit) { ret = limit - 1; buffer[limit-1] = 0; |