diff options
author | Andreas Schuh <andreas.schuh.84@gmail.com> | 2013-01-14 15:11:53 +0000 |
---|---|---|
committer | Andreas Schuh <andreas.schuh.84@gmail.com> | 2013-01-14 15:11:53 +0000 |
commit | 8011f612470309955d357679324937e369096589 (patch) | |
tree | a59ed4b8ad07d7a21afbcec3c4e15a213e995703 /src | |
parent | f098a548228a5f7547d1d3a079fac42b89ed03f7 (diff) | |
download | gflags-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |