diff --git a/ScreenGrab/ScreenGrab12.cpp b/ScreenGrab/ScreenGrab12.cpp index b645493..29fb657 100644 --- a/ScreenGrab/ScreenGrab12.cpp +++ b/ScreenGrab/ScreenGrab12.cpp @@ -1018,7 +1018,7 @@ HRESULT DirectX::SaveDDSTextureToFile( uint8_t* dptr = pixels.get(); - size_t msize = std::min(rowPitch, dstRowPitch); + size_t msize = std::min(rowPitch, size_t(dstRowPitch)); for (size_t h = 0; h < rowCount; ++h) { memcpy_s(dptr, rowPitch, sptr, msize);