about summary refs log tree commit diff
path: root/converter
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2021-11-28 17:33:08 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2021-11-28 17:33:08 +0000
commit904c1e64ad0d672c04c1c28e0f0d760b0e7c7cae (patch)
tree3c1d585b131c0a52098fbcac493112e13e70fd60 /converter
parentb262c2b0b8553abdb208357d39b1ec633693a03a (diff)
downloadnetpbm-mirror-904c1e64ad0d672c04c1c28e0f0d760b0e7c7cae.tar.gz
netpbm-mirror-904c1e64ad0d672c04c1c28e0f0d760b0e7c7cae.tar.xz
netpbm-mirror-904c1e64ad0d672c04c1c28e0f0d760b0e7c7cae.zip
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4196 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter')
-rw-r--r--converter/pgm/st4topgm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/converter/pgm/st4topgm.c b/converter/pgm/st4topgm.c
index 90be6b72..791184b7 100644
--- a/converter/pgm/st4topgm.c
+++ b/converter/pgm/st4topgm.c
@@ -69,11 +69,11 @@ writeRaster(FILE *       const ifP,
         unsigned int col;
 
         for (col = 0; col < st4Width; ++col) {
-            char c;
+            unsigned char c;
 
-            pm_readchar(ifP, &c);
+            pm_readcharu(ifP, &c);
 
-            tuplerow[col][0] = (unsigned char)c;
+            tuplerow[col][0] = c;
         }
         pnm_writepamrow(pamP, tuplerow);
     }