fixed compiler warning 'comparison between signed and unsigned integer expressions'

This commit is contained in:
Mathias Gumz 2010-08-23 19:44:21 +02:00
parent e23c2c4d1b
commit a1385e4018

View file

@ -57,13 +57,13 @@ namespace {
int showSeconds(const std::string& fmt_string) {
return fmt_string.find("%c") != -1
|| fmt_string.find("%r") != -1
|| fmt_string.find("%s") != -1
|| fmt_string.find("%S") != -1
|| fmt_string.find("%T") != -1
|| fmt_string.find("%X") != -1
|| fmt_string.find("%+") != -1;
return fmt_string.find("%c") != std::string::npos
|| fmt_string.find("%r") != std::string::npos
|| fmt_string.find("%s") != std::string::npos
|| fmt_string.find("%S") != std::string::npos
|| fmt_string.find("%T") != std::string::npos
|| fmt_string.find("%X") != std::string::npos
|| fmt_string.find("%+") != std::string::npos;
}
timeval calcNextTimeout(const std::string& fmt_string) {