about summary refs log tree commit diff
path: root/converter/ppm/leaftoppm.c
diff options
context:
space:
mode:
Diffstat (limited to 'converter/ppm/leaftoppm.c')
-rw-r--r--converter/ppm/leaftoppm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/converter/ppm/leaftoppm.c b/converter/ppm/leaftoppm.c
index bda44494..61c19c1e 100644
--- a/converter/ppm/leaftoppm.c
+++ b/converter/ppm/leaftoppm.c
@@ -36,7 +36,7 @@ leaf_init(FILE *  const fp,
     long magic;
     
     pm_readbiglong(fp, &magic);
-    if (magic != 0x894f5053)
+    if ((uint32_t)magic != 0x894f5053)
         pm_error("Bad magic number.  First 4 bytes should be "
                  "0x894f5053 but are instead 0x%08x", (unsigned)magic);