diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-12-03 16:08:00 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-12-03 16:08:00 +0000 |
commit | 8e01637df59e9a366dede344bfb0df4343f540eb (patch) | |
tree | 983ca737ba523ba57e12b9c3b502db9f63c15619 /other | |
parent | acd527864efe6651f58a291ec6d707188ea20b29 (diff) | |
download | netpbm-mirror-8e01637df59e9a366dede344bfb0df4343f540eb.tar.gz netpbm-mirror-8e01637df59e9a366dede344bfb0df4343f540eb.tar.xz netpbm-mirror-8e01637df59e9a366dede344bfb0df4343f540eb.zip |
Release 10.35.19
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@163 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'other')
-rw-r--r-- | other/pamx/image.c | 2 | ||||
-rw-r--r-- | other/pamx/pamx.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/other/pamx/image.c b/other/pamx/image.c index 3aaa8478..892a9768 100644 --- a/other/pamx/image.c +++ b/other/pamx/image.c @@ -157,7 +157,7 @@ newRGBImage(unsigned int const width, unsigned int const height, unsigned int const depth) { - unsigned int const pixlen = pixlen > 0 ? (depth + 7) / 8 : 1; + unsigned int const pixlen = depth > 0 ? (depth + 7) / 8 : 1; /* Special case for "zero" depth image, which is sometimes interpreted as "one color" */ diff --git a/other/pamx/pamx.c b/other/pamx/pamx.c index 8a64fec4..17980643 100644 --- a/other/pamx/pamx.c +++ b/other/pamx/pamx.c @@ -184,7 +184,7 @@ fillRow1(struct pam * const pamP, for (col = 0; col < pamP->width; ++col) { unsigned int plane; - for (plane = 0; plane < pamP->depth; ++plane) + for (plane = 0; plane < 3; ++plane) *(*pP)++ = pnm_scalesample(tuplerow[col][0], pamP->maxval, 255); } |