From ac9154458a06c8ff990fa064981c15668d8d8124 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Mon, 27 Nov 2006 07:43:16 +0000 Subject: fix bug with X depth = 0 git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@149 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- other/pamx/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'other/pamx') diff --git a/other/pamx/image.c b/other/pamx/image.c index d74795cb..0e719438 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" */ -- cgit 1.4.1