about summary refs log tree commit diff
path: root/other/pamendian.c
diff options
context:
space:
mode:
Diffstat (limited to 'other/pamendian.c')
-rw-r--r--other/pamendian.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/other/pamendian.c b/other/pamendian.c
index d82ebd38..c24d9629 100644
--- a/other/pamendian.c
+++ b/other/pamendian.c
@@ -49,6 +49,8 @@ int main(int argc, char *argv[]) {
     intuplerow = pnm_allocpamrow(&inpam);      
     outtuplerow = pnm_allocpamrow(&outpam);
 
+    inpam.maxval = 65535;
+
     for (row = 0; row < inpam.height; row++) {
         unsigned int col;
         pnm_readpamrow(&inpam, intuplerow);