Skip to content

Commit

Permalink
Fix this cast
Browse files Browse the repository at this point in the history
  • Loading branch information
brndnmtthws committed Feb 23, 2024
1 parent 9ce0c06 commit d63ae4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/libcairo-helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d63ae4f

Please sign in to comment.