Skip to content

Commit

Permalink
libdeng2: Minor cleanup
Browse files Browse the repository at this point in the history
Interesting that clang happily allows incrementing an enumeration type
even when using a maximum pedantic warning level.
  • Loading branch information
skyjake committed Nov 16, 2012
1 parent 2328acc commit e1c76ee
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions doomsday/libdeng2/include/de/core/log.h
Expand Up @@ -162,11 +162,10 @@ class DENG2_PUBLIC Log

static LogLevel textToLevel(String text)
{
for(uint i = uint(TRACE); i < uint(MAX_LOG_LEVELS); ++i)
for(int i = TRACE; i < MAX_LOG_LEVELS; ++i)
{
LogLevel level = LogLevel(i);
if(!levelToText(level).compareWithoutCase(text))
return level;
if(!levelToText(LogLevel(i)).compareWithoutCase(text))
return LogLevel(i);
}
throw Error("Log::textToLevel", "'" + text + "' is not a valid log level");
}
Expand Down

0 comments on commit e1c76ee

Please sign in to comment.