diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-11-17 23:30:43 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-11-22 22:40:46 +0800 |
commit | 14136e7a1eb1fd14cf045fdcd3e5d0ff85861405 (patch) | |
tree | fc6adc372fa9fcfc8ebb04aac21e1304357f61b1 /source | |
parent | d0dc76b33c469067d0a4750d9b8b02a869004581 (diff) | |
download | mupdf-14136e7a1eb1fd14cf045fdcd3e5d0ff85861405.tar.xz |
Fix fz_warn() format compiler warning.
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/load-jpx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/fitz/load-jpx.c b/source/fitz/load-jpx.c index b1d77c74..f93a0775 100644 --- a/source/fitz/load-jpx.c +++ b/source/fitz/load-jpx.c @@ -333,16 +333,16 @@ jpx_read_image(fz_context *ctx, fz_jpxd *state, unsigned char *data, size_t size { err = JP2_Decompress_GetProp(state->doc, cJP2_Prop_Width, &state->widths[k], -1, k); if (err != cJP2_Error_OK) - fz_throw(ctx, FZ_ERROR_GENERIC, "cannot get width for compoment %d: %d", k, (int) err); + fz_throw(ctx, FZ_ERROR_GENERIC, "cannot get width for component %ld: %d", k, (int) err); err = JP2_Decompress_GetProp(state->doc, cJP2_Prop_Height, &state->heights[k], -1, k); if (err != cJP2_Error_OK) - fz_throw(ctx, FZ_ERROR_GENERIC, "cannot get height for compomment %d: %d", k, (int) err); + fz_throw(ctx, FZ_ERROR_GENERIC, "cannot get height for component %ld: %d", k, (int) err); err = JP2_Decompress_GetProp(state->doc, cJP2_Prop_Bits_Per_Sample, &state->bpss[k], -1, k); if (err != cJP2_Error_OK) - fz_throw(ctx, FZ_ERROR_GENERIC, "cannot get bits per sample for compomment %d: %d", k, (int) err); + fz_throw(ctx, FZ_ERROR_GENERIC, "cannot get bits per sample for component %ld: %d", k, (int) err); err = JP2_Decompress_GetProp(state->doc, cJP2_Prop_Signed_Samples, &state->signs[k], -1, k); if (err != cJP2_Error_OK) - fz_throw(ctx, FZ_ERROR_GENERIC, "cannot get signed for compomment %d: %d", k, (int) err); + fz_throw(ctx, FZ_ERROR_GENERIC, "cannot get signed for component %ld: %d", k, (int) err); state->width = fz_maxi(state->width, state->widths[k]); state->height = fz_maxi(state->height, state->heights[k]); |