summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Leigh <rleigh@codelibre.net>2021-01-17 17:25:31 +0000
committerRoger Leigh <rleigh@codelibre.net>2021-01-27 22:00:36 +0000
commitf1afb21deaa3881ed626ad3a712e088e3ff7e215 (patch)
tree74cac6c77232fcb0c505c72ce5067ed14a4286da
parent899fe9f00107bd0e9a21e0ebd827c8327af68a12 (diff)
downloadlibtiff-git-f1afb21deaa3881ed626ad3a712e088e3ff7e215.tar.gz
short_tag: Use PRI format flags and remove unnecessary casts
-rw-r--r--test/short_tag.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/short_tag.c b/test/short_tag.c
index feab3b66..89197b02 100644
--- a/test/short_tag.c
+++ b/test/short_tag.c
@@ -121,8 +121,8 @@ main()
for (i = 0; i < NSINGLETAGS; i++) {
if (!TIFFSetField(tif, short_single_tags[i].tag,
short_single_tags[i].value)) {
- fprintf(stderr, "Can't set tag %lu.\n",
- (unsigned long)short_single_tags[i].tag);
+ fprintf(stderr, "Can't set tag %"PRIu32".\n",
+ short_single_tags[i].tag);
goto failure;
}
}
@@ -131,8 +131,8 @@ main()
if (!TIFFSetField(tif, short_paired_tags[i].tag,
short_paired_tags[i].values[0],
short_paired_tags[i].values[1])) {
- fprintf(stderr, "Can't set tag %lu.\n",
- (unsigned long)short_paired_tags[i].tag);
+ fprintf(stderr, "Can't set tag %"PRIu32".\n",
+ short_paired_tags[i].tag);
goto failure;
}
}