about summary refs log tree commit diff
path: root/editor
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2020-03-22 01:49:07 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2020-03-22 01:49:07 +0000
commitf79a1cdf72f685e54224212c848c3516cbe4aa71 (patch)
treef74796743ec82938f63583eae8ac2df673097f12 /editor
parent264cae2212684aa5900a4ad959c7f7ff9253fa10 (diff)
downloadnetpbm-mirror-f79a1cdf72f685e54224212c848c3516cbe4aa71.tar.gz
netpbm-mirror-f79a1cdf72f685e54224212c848c3516cbe4aa71.tar.xz
netpbm-mirror-f79a1cdf72f685e54224212c848c3516cbe4aa71.zip
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3768 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor')
-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);