diff --git a/Core/dxerr.cpp b/Core/dxerr.cpp index b57c70c..1b1babe 100644 --- a/Core/dxerr.cpp +++ b/Core/dxerr.cpp @@ -46,11 +46,11 @@ //-------------------------------------------------------------------------------------- #define CHK_ERR(hrchk, strOut) \ - case hrchk: \ + case static_cast(hrchk): \ return L##strOut; #define CHK_ERRA(hrchk) \ - case hrchk: \ + case static_cast(hrchk): \ return L## #hrchk; #define HRESULT_FROM_WIN32b(x) ((HRESULT)(x) <= 0 ? ((HRESULT)(x)) : ((HRESULT) (((x) & 0x0000FFFF) | (FACILITY_WIN32 << 16) | 0x80000000))) @@ -3284,11 +3284,11 @@ const WCHAR* WINAPI DXGetErrorStringW( _In_ HRESULT hr ) #undef CHK_ERR_WIN32_ONLY #define CHK_ERRA(hrchk) \ - case hrchk: \ + case static_cast(hrchk): \ wcscpy_s( desc, count, L## #hrchk ); break; #define CHK_ERR(hrchk, strOut) \ - case hrchk: \ + case static_cast(hrchk): \ wcscpy_s( desc, count, L##strOut ); break;