mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
Fixed Visual Studio warning 4389: '==': signed/unsigned mismatch
This commit is contained in:
@@ -1723,7 +1723,7 @@ static int D3D12_UpdateTextureInternal(D3D12_RenderData *rendererData, ID3D12Res
|
||||
src = (const Uint8 *)pixels;
|
||||
dst = textureMemory;
|
||||
length = w * bpp;
|
||||
if (length == pitch && length == pitchedDesc.RowPitch) {
|
||||
if (length == (UINT)pitch && length == pitchedDesc.RowPitch) {
|
||||
SDL_memcpy(dst, src, (size_t)length * h);
|
||||
} else {
|
||||
if (length > (UINT)pitch) {
|
||||
|
Reference in New Issue
Block a user