Skip to content

Commit

Permalink
Merge pull request #596 from Broekman/master
Browse files Browse the repository at this point in the history
Issue fix for spdlog #595. Conversion warning.
  • Loading branch information
gabime authored Dec 26, 2017
2 parents 03db102 + de4644b commit a2890f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/spdlog/sinks/wincolor_sink.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class wincolor_sink: public base_sink<Mutex>
GetConsoleScreenBufferInfo(out_handle_, &orig_buffer_info);
WORD back_color = orig_buffer_info.wAttributes;
// retrieve the current background color
back_color &= ~(FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_INTENSITY);
back_color &= static_cast<WORD>(~(FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_INTENSITY));
// keep the background color unchanged
SetConsoleTextAttribute(out_handle_, attribs | back_color);
return orig_buffer_info.wAttributes; //return orig attribs
Expand Down

0 comments on commit a2890f2

Please sign in to comment.