From f79a1cdf72f685e54224212c848c3516cbe4aa71 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sun, 22 Mar 2020 01:49:07 +0000 Subject: cleanup git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3768 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- editor/pnmshear.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'editor/pnmshear.c') 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); -- cgit 1.4.1