Fix for code scanning alert: Multiplication result converted to larger type

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
Scott Brenner
2025-05-24 21:09:09 -07:00
committed by teejusb
parent fc2d5dbf17
commit 146702430b
+1 -1
View File
@@ -930,7 +930,7 @@ RageSurface *RageSurfaceUtils::MakeDummySurface( int height, int width )
RageSurfaceColor pink( 0xFF, 0x10, 0xFF, 0xFF );
ret_image->fmt.palette->colors[0] = pink;
memset( ret_image->pixels, 0, ret_image->h*ret_image->pitch );
memset( ret_image->pixels, 0, (size_t)ret_image->h * ret_image->pitch );
return ret_image;
}