Update src/RageSurfaceUtils.cpp

This commit is contained in:
Scott Brenner
2025-05-25 21:08:36 -07:00
committed by teejusb
parent f0908b58ad
commit 7ff2002bec
+1 -1
View File
@@ -500,7 +500,7 @@ static bool blit_same_type( const RageSurface *src_surf, const RageSurface *dst_
// The rows don't line up, so memcpy row by row.
while( height-- )
{
memcpy( dst, src, (size_t)width * src_surf->format->BytesPerPixel );
memcpy( dst, src, static_cast<size_t>(width) * src_surf->format->BytesPerPixel );
src += src_surf->pitch;
dst += dst_surf->pitch;
}