From 8e24fee9dacc48f8689473a20693d9cd0552766a Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Wed, 11 Jun 2014 17:44:50 +0200 Subject: [PATCH] explicitly cast from int to bool --- Util/SimpleLogger.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Util/SimpleLogger.h b/Util/SimpleLogger.h index f154b0e82..a234c9646 100644 --- a/Util/SimpleLogger.h +++ b/Util/SimpleLogger.h @@ -127,7 +127,7 @@ class SimpleLogger std::lock_guard lock(get_mutex()); if (!LogPolicy::GetInstance().IsMute()) { - const bool is_terminal = isatty(fileno(stdout)); + const bool is_terminal = ( 0 != isatty(fileno(stdout)) ? true : false); switch (level) { case logINFO: