Verified Commit f1ac2849 authored by Andy Holmes's avatar Andy Holmes
Browse files

vector-style: Avoid int multiplication overflow

Avoid int * int multiplication warnings by performing
the calculation on gsize values.
parent 984714dd
Pipeline #333971 passed with stages
in 3 minutes and 1 second
......@@ -265,8 +265,8 @@ texture_new_for_surface (cairo_surface_t *surface)
g_return_val_if_fail (cairo_image_surface_get_height (surface) > 0, NULL);
bytes = g_bytes_new_with_free_func (cairo_image_surface_get_data (surface),
cairo_image_surface_get_height (surface)
* cairo_image_surface_get_stride (surface),
(gsize) cairo_image_surface_get_height (surface)
* (gsize) cairo_image_surface_get_stride (surface),
(GDestroyNotify) cairo_surface_destroy,
cairo_surface_reference (surface));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment