mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-10 22:56:14 +01:00
Replaced _countof / ARRAYSIZE with std::size
This commit is contained in:
@@ -156,7 +156,7 @@ HRESULT LoadAnimatedGif(const wchar_t* szFile, std::vector<std::unique_ptr<Scrat
|
||||
if (FAILED(hr))
|
||||
return hr;
|
||||
|
||||
hr = palette->GetColors(_countof(rgbColors), rgbColors, &actualColors);
|
||||
hr = palette->GetColors(static_cast<UINT>(std::size(rgbColors)), rgbColors, &actualColors);
|
||||
if (FAILED(hr))
|
||||
return hr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user