diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2016-06-06 10:21:01 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2016-06-06 10:21:01 +0100 |
commit | 25936513d5dfc0270f23be57d8c79de32a0e45eb (patch) | |
tree | 80e5a4a61c3e7c0de2ae4d0023eb934098a36293 /devices/gdevifno.c | |
parent | bc06a8ac477bd5b08e34c5e74d70bc6107255da0 (diff) | |
download | ghostpdl-25936513d5dfc0270f23be57d8c79de32a0e45eb.tar.gz |
Coverity ID 127117
us is an unsigned short, so remove the pointless test 'us < 0'
Diffstat (limited to 'devices/gdevifno.c')
-rw-r--r-- | devices/gdevifno.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/devices/gdevifno.c b/devices/gdevifno.c index 60a10cb38..b880dffd2 100644 --- a/devices/gdevifno.c +++ b/devices/gdevifno.c @@ -336,7 +336,7 @@ inferno_print_page(gx_device_printer *pdev, FILE *f) p[x] = rgb2cmap(r,g,b); } if(1){ - if (us < 0 || us >= p9color_size) + if (us >= p9color_size) return_error(gs_error_rangecheck); u = bdev->p9color[us]; /* the ulong in p9color is a 2x2 matrix. pull the entry |