diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-01-01 20:53:29 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-01-01 20:53:29 +0000 |
commit | 5cba4da7e6f9f51fe2fcb12581a37e0abf052d96 (patch) | |
tree | aadc56ed1f49c45b2e5c443615b06fd767c9709b /converter/other/pstopnm.c | |
parent | 4c6d4fe5b9f8ebf257ac88e0df816d58cd4f58a2 (diff) | |
download | netpbm-mirror-5cba4da7e6f9f51fe2fcb12581a37e0abf052d96.tar.gz netpbm-mirror-5cba4da7e6f9f51fe2fcb12581a37e0abf052d96.tar.xz netpbm-mirror-5cba4da7e6f9f51fe2fcb12581a37e0abf052d96.zip |
Remove bogus assertion
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2092 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/pstopnm.c')
-rw-r--r-- | converter/other/pstopnm.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/converter/other/pstopnm.c b/converter/other/pstopnm.c index 290e128a..427654e1 100644 --- a/converter/other/pstopnm.c +++ b/converter/other/pstopnm.c @@ -593,16 +593,13 @@ addBorders(struct Box const inputBox, assert(inputBox.urx >= inputBox.llx); assert(inputBox.ury >= inputBox.lly); - assert(inputBox.llx >= leftRightBorderSize); - assert(inputBox.lly >= topBottomBorderSize); - - retval.llx = inputBox.llx - leftRightBorderSize; - retval.lly = inputBox.lly - topBottomBorderSize; - retval.urx = inputBox.urx + leftRightBorderSize; - retval.ury = inputBox.ury + topBottomBorderSize; + retval.llx = inputBox.llx - (int)leftRightBorderSize; + retval.lly = inputBox.lly - (int)topBottomBorderSize; + retval.urx = inputBox.urx + (int)leftRightBorderSize; + retval.ury = inputBox.ury + (int)topBottomBorderSize; if (verbose) - pm_message("With borders, extracted box is ((%u,%u),(%u,%u))", + pm_message("With borders, extracted box is ((%d,%d),(%d,%d))", retval.llx, retval.lly, retval.urx, retval.ury); return retval; |