summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schuh <andreas.schuh.84@gmail.com>2013-01-14 15:11:53 +0000
committerAndreas Schuh <andreas.schuh.84@gmail.com>2013-01-14 15:11:53 +0000
commit8011f612470309955d357679324937e369096589 (patch)
treea59ed4b8ad07d7a21afbcec3c4e15a213e995703 /src
parentf098a548228a5f7547d1d3a079fac42b89ed03f7 (diff)
downloadgflags-8011f612470309955d357679324937e369096589.tar.gz
gflags-8011f612470309955d357679324937e369096589.tar.bz2
gflags-8011f612470309955d357679324937e369096589.zip
Use static_cast to avoid comparison of signed and unsigned integer warning in util.h.
git-svn-id: https://gflags.googlecode.com/svn/trunk@81 6586e3c6-dcc4-952a-343f-ff74eb82781d
Diffstat (limited to 'src')
-rw-r--r--src/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index f79d3f5..5271946 100644
--- a/src/util.h
+++ b/src/util.h
@@ -264,7 +264,7 @@ inline void InternalStringPrintf(std::string* output, const char* format,
int bytes_written = vsnprintf(space, sizeof(space), format, backup_ap);
va_end(backup_ap);
- if ((bytes_written >= 0) && (bytes_written < sizeof(space))) {
+ if ((bytes_written >= 0) && (static_cast<size_t>(bytes_written) < sizeof(space))) {
output->append(space, bytes_written);
return;
}