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:
committed by
teejusb
co-authored by
Copilot Autofix powered by AI
parent
fc2d5dbf17
commit
146702430b
@@ -930,7 +930,7 @@ RageSurface *RageSurfaceUtils::MakeDummySurface( int height, int width )
|
|||||||
RageSurfaceColor pink( 0xFF, 0x10, 0xFF, 0xFF );
|
RageSurfaceColor pink( 0xFF, 0x10, 0xFF, 0xFF );
|
||||||
ret_image->fmt.palette->colors[0] = pink;
|
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;
|
return ret_image;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user