about summary refs log tree commit diff
path: root/other
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2018-10-07 20:13:46 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2018-10-07 20:13:46 +0000
commitfb29e3802c58a31d39eea11dc2ce2db2b7b17f35 (patch)
tree8527bcdcd9e35bc589c176c3883a9331b8900045 /other
parent08b99f98b7131beced060c84b8a7d516851ff576 (diff)
downloadnetpbm-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.c2
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;