mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-12-26 01:31:06 +00:00
Fix mingw build (source/print.cpp)
source/print.cpp doesn't compile due to integer conversion. Tested by @dneto0 on a Windows machine.
This commit is contained in:
parent
860c4197b0
commit
32cf85dd5a
@ -42,7 +42,7 @@ static void SetConsoleForegroundColorPrimary(HANDLE hConsole, WORD color)
|
||||
GetConsoleScreenBufferInfo(hConsole, &bufInfo);
|
||||
|
||||
// Get background color
|
||||
color |= (bufInfo.wAttributes & 0xfff0);
|
||||
color = WORD(color | (bufInfo.wAttributes & 0xfff0));
|
||||
|
||||
// Set foreground color
|
||||
SetConsoleTextAttribute(hConsole, color);
|
||||
|
Loading…
Reference in New Issue
Block a user