Skip to content

Commit

Permalink
vips2tiff: fix function pointer cast issue
Browse files Browse the repository at this point in the history
`g_slist_sort()` uses the same implementation as
`g_slist_sort_with_data()` within in GLib; hence, the function's
signature must align with that of `GCompareDataFunc`.

Helps wasm-vips, where function pointer cast issues fails at runtime.
  • Loading branch information
kleisauke committed Sep 27, 2023
1 parent 0819ecc commit 06fbeaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libvips/foreign/vips2tiff.c
Original file line number Diff line number Diff line change
Expand Up @@ -1771,7 +1771,7 @@ wtiff_row_free(WtiffRow *row)
}

static int
wtiff_tile_compare(WtiffTile *a, WtiffTile *b)
wtiff_tile_compare(WtiffTile *a, WtiffTile *b, void *user_data)
{
return b->x - a->x;
}
Expand Down

0 comments on commit 06fbeaf

Please sign in to comment.