diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-02-15 18:40:39 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-02-15 18:40:39 -0800 |
| commit | 1f673572ae0df09bf9fe72e5a5e530f99b084114 (patch) | |
| tree | d37ad92664866d8437b07ee42023dbfdf0d87def /toolsrc/src/vcpkg_System.cpp | |
| parent | b39b2d298d0a1c9e05d0fcaf3e801a0a5bd9cb41 (diff) | |
| download | vcpkg-1f673572ae0df09bf9fe72e5a5e530f99b084114.tar.gz vcpkg-1f673572ae0df09bf9fe72e5a5e530f99b084114.zip | |
Fix cast to WORD
Diffstat (limited to 'toolsrc/src/vcpkg_System.cpp')
| -rw-r--r-- | toolsrc/src/vcpkg_System.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolsrc/src/vcpkg_System.cpp b/toolsrc/src/vcpkg_System.cpp index 0be026b79..90ec9c99c 100644 --- a/toolsrc/src/vcpkg_System.cpp +++ b/toolsrc/src/vcpkg_System.cpp @@ -68,7 +68,7 @@ namespace vcpkg::System GetConsoleScreenBufferInfo(hConsole, &consoleScreenBufferInfo); auto original_color = consoleScreenBufferInfo.wAttributes; - SetConsoleTextAttribute(hConsole, static_cast<int>(c) | (original_color & 0xF0)); + SetConsoleTextAttribute(hConsole, static_cast<WORD>(c) | (original_color & 0xF0)); std::cout << message; SetConsoleTextAttribute(hConsole, original_color); } |
