diff options
Diffstat (limited to 'other/pnmcolormap.c')
-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; |