From 904c1e64ad0d672c04c1c28e0f0d760b0e7c7cae Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sun, 28 Nov 2021 17:33:08 +0000 Subject: cleanup git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4196 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/pgm/st4topgm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'converter/pgm') 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); } -- cgit 1.4.1