mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2025-01-13 18:00:05 +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);
|
GetConsoleScreenBufferInfo(hConsole, &bufInfo);
|
||||||
|
|
||||||
// Get background color
|
// Get background color
|
||||||
color |= (bufInfo.wAttributes & 0xfff0);
|
color = WORD(color | (bufInfo.wAttributes & 0xfff0));
|
||||||
|
|
||||||
// Set foreground color
|
// Set foreground color
|
||||||
SetConsoleTextAttribute(hConsole, color);
|
SetConsoleTextAttribute(hConsole, color);
|
||||||
|
Loading…
Reference in New Issue
Block a user