From 4c050566e208acbbc2ac94d21208a93637a815c0 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Wed, 13 May 2015 06:20:47 +0000 Subject: Fix bogus assertion and comment from a few hours ago git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2487 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/pbm/pbmtomgr.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/converter/pbm/pbmtomgr.c b/converter/pbm/pbmtomgr.c index 4bc6efdc..d12e6635 100644 --- a/converter/pbm/pbmtomgr.c +++ b/converter/pbm/pbmtomgr.c @@ -20,8 +20,8 @@ putinit(unsigned int const rows, size_t writtenCount; /* Because of argument restrictions: maximum dimensions: */ - assert((rows & 0x3f) == rows); - assert((cols & 0x3f) == cols); + assert((rows & 0xfff) == rows); + assert((cols & 0xfff) == cols); head.magic[0] = 'y'; head.magic[1] = 'z'; @@ -55,7 +55,8 @@ main(int argc, a multiple of 8, i.e. an integral number of packed bytes. */ const char * inputFileName; - unsigned int const maxDimension = 4095; /* Dimensions: 6 bits */ + unsigned int const maxDimension = 4095; + /* Dimensions are 2 characters of the header -- 12 bits */ pbm_init(&argc, argv); -- cgit 1.4.1