Mon, 11 Jan 2016 00:56:44 +0200
Fixed some warning on MSVC
sources/interface.cpp | file | annotate | diff | comparison | revisions |
--- 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)