diff --git a/lua/libcairo-helper.h b/lua/libcairo-helper.h index c74965342..4eeeadfbc 100644 --- a/lua/libcairo-helper.h +++ b/lua/libcairo-helper.h @@ -37,7 +37,7 @@ cairo_font_extents_t *create_cairo_font_extents_t(void) { } cairo_matrix_t *create_cairo_matrix_t(void) { - return calloc(1, sizeof(cairo_matrix_t)); + return (cairo_matrix_t *)calloc(1, sizeof(cairo_matrix_t)); } void destroy_cairo_text_extents_t(cairo_text_extents_t *pointer) {