# HG changeset patch # User Teemu Piippo # Date 1452466604 -7200 # Node ID 9eb47f1899be0cad83eecf6dbaced63342241061 # Parent ae284bf1b5ff73afc3b82b8dc91ff9741f567fd0 Fixed some warning on MSVC diff -r ae284bf1b5ff -r 9eb47f1899be sources/interface.cpp --- a/sources/interface.cpp Mon Jan 11 02:49:29 2016 +0200 +++ b/sources/interface.cpp Mon Jan 11 00:56:44 2016 +0200 @@ -174,9 +174,9 @@ if (::has_colors()) { ::start_color(); - bool hasDefaultColors = ::use_default_colors(); - int defaultFg = (hasDefaultColors == OK) ? -1 : COLOR_WHITE; - int defaultBg = (hasDefaultColors == OK) ? -1 : COLOR_BLACK; + bool hasDefaultColors = (::use_default_colors() == OK); + int defaultFg = hasDefaultColors ? -1 : COLOR_WHITE; + int defaultBg = hasDefaultColors ? -1 : COLOR_BLACK; // Initialize color pairs for (int i = 0; i < NUM_COLORS; ++i)