explicitly cast from int to bool
This commit is contained in:
parent
ed01eeaeb3
commit
8e24fee9da
@ -127,7 +127,7 @@ class SimpleLogger
|
||||
std::lock_guard<std::mutex> 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:
|
||||
|
Loading…
Reference in New Issue
Block a user