Skip to content

Commit

Permalink
xcf: use SDL_PRIu32 for formatting image_type for IMG_SetError
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Jan 12, 2024
1 parent 825d92a commit cf48c86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IMG_xcf.c
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ do_layer_surface(SDL_Surface *surface, SDL_RWops *src, xcf_header *head, xcf_lay
}
break;
default:
IMG_SetError("Unknown Gimp image type (%u)", head->image_type);
IMG_SetError("Unknown Gimp image type (%"SDL_PRIs32")", head->image_type);
if (hierarchy) {
free_xcf_hierarchy(hierarchy);
}
Expand Down Expand Up @@ -857,7 +857,7 @@ do_layer_surface(SDL_Surface *surface, SDL_RWops *src, xcf_header *head, xcf_lay
}
break;
default:
IMG_SetError("Unknown Gimp image type (%d)\n", head->image_type);
IMG_SetError("Unknown Gimp image type (%"SDL_PRIs32")\n", head->image_type);
if (tile)
free_xcf_tile(tile);
if (level)
Expand Down

0 comments on commit cf48c86

Please sign in to comment.