зеркало из https://github.com/microsoft/DXUT.git
Fixed -Wnarrowing failure when building with MinGW GNU 12.2
This commit is contained in:
Родитель
b5ba81bcbc
Коммит
f9ef692ded
|
@ -46,11 +46,11 @@
|
|||
|
||||
//--------------------------------------------------------------------------------------
|
||||
#define CHK_ERR(hrchk, strOut) \
|
||||
case hrchk: \
|
||||
case static_cast<HRESULT>(hrchk): \
|
||||
return L##strOut;
|
||||
|
||||
#define CHK_ERRA(hrchk) \
|
||||
case hrchk: \
|
||||
case static_cast<HRESULT>(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<HRESULT>(hrchk): \
|
||||
wcscpy_s( desc, count, L## #hrchk ); break;
|
||||
|
||||
#define CHK_ERR(hrchk, strOut) \
|
||||
case hrchk: \
|
||||
case static_cast<HRESULT>(hrchk): \
|
||||
wcscpy_s( desc, count, L##strOut ); break;
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче