rang.hpp: suppress compiler warning

This commit is contained in:
Martin Pulec
2020-11-03 11:59:01 +01:00
parent 913d026649
commit 932f96b62a

View File

@@ -174,9 +174,9 @@ namespace rang_implementation {
{
// Dynamic load for binary compability with old Windows
const auto ptrGetFileInformationByHandleEx
= reinterpret_cast<decltype(&GetFileInformationByHandleEx)>(
= reinterpret_cast<decltype(&GetFileInformationByHandleEx)>(reinterpret_cast<void *>(
GetProcAddress(GetModuleHandle(TEXT("kernel32.dll")),
"GetFileInformationByHandleEx"));
"GetFileInformationByHandleEx")));
if (!ptrGetFileInformationByHandleEx) {
return false;
}