Skip to content

Commit

Permalink
Fixed warning about too-small loop index
Browse files Browse the repository at this point in the history
  • Loading branch information
azonenberg committed Nov 14, 2024
1 parent 9f089dd commit fdf8e31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ngscopeclient/TextureManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ void TextureManager::LoadTexture(

//Fill the mapped buffer with image data from the PNG
size_t rowSize = width * bytesPerPixel;
for(int y=0; y<height; y++)
for(size_t y=0; y<height; y++)
memcpy(mappedPtr + (y*rowSize), rowPtrs[y], rowSize);
physMem.unmapMemory();

Expand Down

0 comments on commit fdf8e31

Please sign in to comment.