From d63ae4f93630a97e3c200bea75abd16b3fdf0a9e Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Fri, 23 Feb 2024 10:55:54 -0500 Subject: [PATCH] Fix this cast --- lua/libcairo-helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {