about summary refs log tree commit diff
path: root/converter
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2010-04-05 15:31:03 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2010-04-05 15:31:03 +0000
commitbfa0ea3cff9f2938c5eaa4f9be2730a6874e5a35 (patch)
tree100c26faccc2884e39c0ff8efafc9f66ea78fe9a /converter
parent79cc05d8b6609e79d87871f860d5cc08e6405958 (diff)
downloadnetpbm-mirror-bfa0ea3cff9f2938c5eaa4f9be2730a6874e5a35.tar.gz
netpbm-mirror-bfa0ea3cff9f2938c5eaa4f9be2730a6874e5a35.tar.xz
netpbm-mirror-bfa0ea3cff9f2938c5eaa4f9be2730a6874e5a35.zip
Fix signedness problem
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1176 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter')
-rw-r--r--converter/other/avstopam.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/converter/other/avstopam.c b/converter/other/avstopam.c
index 8d32008c..322f387d 100644
--- a/converter/other/avstopam.c
+++ b/converter/other/avstopam.c
@@ -43,11 +43,11 @@ producePam(FILE *       const avsFileP,
         unsigned int col;
         for (col = 0; col < pamP->width; ++col) {
             tuple const thisTuple = tuplerow[col];
-            char c;
-            pm_readchar(avsFileP, &c); thisTuple[3] = c;
-            pm_readchar(avsFileP, &c); thisTuple[0] = c;
-            pm_readchar(avsFileP, &c); thisTuple[1] = c;
-            pm_readchar(avsFileP, &c); thisTuple[2] = c;
+            unsigned char c;
+            pm_readcharu(avsFileP, &c); thisTuple[3] = c;
+            pm_readcharu(avsFileP, &c); thisTuple[0] = c;
+            pm_readcharu(avsFileP, &c); thisTuple[1] = c;
+            pm_readcharu(avsFileP, &c); thisTuple[2] = c;
         }
         pnm_writepamrow(pamP, tuplerow);
     }