diff options
Diffstat (limited to 'other/pamx/image.c')
-rw-r--r-- | other/pamx/image.c | 2 |
1 files changed, 1 insertions, 1 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" */ |