about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--lib/libpgm1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpgm1.c b/lib/libpgm1.c
index 64a43534..2526a22a 100644
--- a/lib/libpgm1.c
+++ b/lib/libpgm1.c
@@ -196,7 +196,7 @@ readRpgmRow(FILE * const fileP,
                       errno, strerror(errno));
         else if (rc != bytesPerRow)
             asprintfN(&error, "Error reading row.  Short read of %u bytes "
-                      "instead of %u", rc, bytesPerRow);
+                      "instead of %u", (unsigned)rc, bytesPerRow);
         else {
             error = NULL;
             if (maxval < 256) {