about summary refs log tree commit diff
path: root/editor/pnmshear.c
diff options
context:
space:
mode:
Diffstat (limited to 'editor/pnmshear.c')
-rw-r--r--editor/pnmshear.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/editor/pnmshear.c b/editor/pnmshear.c
index 1c478ff3..a6ce41af 100644
--- a/editor/pnmshear.c
+++ b/editor/pnmshear.c
@@ -212,10 +212,13 @@ main(int argc, const char * argv[]) {
     xel * xelrow;
     xel * newxelrow;
     xel bgxel;
-    int rows, cols, format;
-    int newformat, newcols;
-    int row;
-    xelval maxval, newmaxval;
+    int rows, cols;
+    int format;
+    unsigned int newcols;
+    int newformat;
+    unsigned int row;
+    xelval maxval;
+    xelval newmaxval;
     double shearfac;
     double newcolsD;
 
@@ -248,7 +251,7 @@ main(int argc, const char * argv[]) {
         pm_error("angle is too close to +/-90 degrees; "
                  "output image too wide for computation");
     else
-        newcols = (int) newcolsD;
+        newcols = (unsigned int) newcolsD;
 
     pnm_writepnminit(stdout, newcols, rows, newmaxval, newformat, 0);
     newxelrow = pnm_allocrow(newcols);