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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user