about summary refs log tree commit diff
path: root/converter/other/pnmtops.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2021-03-22 01:24:19 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2021-03-22 01:24:19 +0000
commita36d2f6acdddc16d78f2f986c5ff58a91f4630b8 (patch)
treecb970064adf445ce689cbae6b29fc8a9dbd0f903 /converter/other/pnmtops.c
parente3c883f91be7421e0822ec5fdc27099761a672f9 (diff)
downloadnetpbm-mirror-a36d2f6acdddc16d78f2f986c5ff58a91f4630b8.tar.gz
netpbm-mirror-a36d2f6acdddc16d78f2f986c5ff58a91f4630b8.tar.xz
netpbm-mirror-a36d2f6acdddc16d78f2f986c5ff58a91f4630b8.zip
Release 10.86.20
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@4059 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/pnmtops.c')
-rw-r--r--converter/other/pnmtops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/converter/other/pnmtops.c b/converter/other/pnmtops.c
index de0dfd8d..a286bc1e 100644
--- a/converter/other/pnmtops.c
+++ b/converter/other/pnmtops.c
@@ -1012,8 +1012,8 @@ validateComputableBoundingBox(float const scols,
     float const bbWidth  = llx + scols + 0.5;
     float const bbHeight = lly + srows + 0.5;
 
-    if (bbHeight < INT_MIN || bbHeight > INT_MAX ||
-        bbWidth  < INT_MIN || bbWidth  > INT_MAX)
+    if ((double)bbHeight < INT_MIN || (double)bbHeight > INT_MAX ||
+        (double)bbWidth  < INT_MIN || (double)bbWidth  > INT_MAX)
         pm_error("Bounding box dimensions %.1f x %.1f are too large "
                  "for computations.  "
                  "This probably means input image width, height, "