diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-10-07 20:13:46 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-10-07 20:13:46 +0000 |
commit | fb29e3802c58a31d39eea11dc2ce2db2b7b17f35 (patch) | |
tree | 8527bcdcd9e35bc589c176c3883a9331b8900045 /other | |
parent | 08b99f98b7131beced060c84b8a7d516851ff576 (diff) | |
download | netpbm-mirror-fb29e3802c58a31d39eea11dc2ce2db2b7b17f35.tar.gz netpbm-mirror-fb29e3802c58a31d39eea11dc2ce2db2b7b17f35.tar.xz netpbm-mirror-fb29e3802c58a31d39eea11dc2ce2db2b7b17f35.zip |
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3404 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'other')
-rw-r--r-- | other/pnmcolormap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/other/pnmcolormap.c b/other/pnmcolormap.c index 1680faaa..f687f037 100644 --- a/other/pnmcolormap.c +++ b/other/pnmcolormap.c @@ -836,7 +836,7 @@ colormapToSquare(struct pam * const pamP, tuple *** const outputRasterP) { { unsigned int const intsqrt = (int)sqrt((float)colormap.size); - if (intsqrt * intsqrt == colormap.size) + if (SQR(intsqrt) == colormap.size) pamP->width = intsqrt; else pamP->width = intsqrt + 1; |