summaryrefslogtreecommitdiff
path: root/contrib/lips4
diff options
context:
space:
mode:
authorJulian Smith <jules@op59.net>2019-11-29 14:35:25 +0000
committerJulian Smith <jules@op59.net>2019-11-29 14:35:25 +0000
commita3f284624a68dcb1ecb72dcf307b42d194e78de1 (patch)
tree0cfc36019432143c9d951297ac1bd1b97075f058 /contrib/lips4
parentff02f8741f71830e7a4795645680a16b9d7ae106 (diff)
downloadghostpdl-a3f284624a68dcb1ecb72dcf307b42d194e78de1.tar.gz
Coverity 94653: fixed incorrect if() that was logically dead code.
Diffstat (limited to 'contrib/lips4')
-rw-r--r--contrib/lips4/gdevl4v.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/lips4/gdevl4v.c b/contrib/lips4/gdevl4v.c
index cdfba93fd..b0c204b97 100644
--- a/contrib/lips4/gdevl4v.c
+++ b/contrib/lips4/gdevl4v.c
@@ -1396,11 +1396,11 @@ lips4v_endpath(gx_device_vector * vdev, gx_path_type_t type)
lputs(s, "P)");
sputc(s, LIPS_IS2);
if (type & gx_path_type_rule) {
- if (type & gx_path_type_winding_number) {
- lputs(s, "}I1");
+ if (type & gx_path_type_even_odd) {
+ lputs(s, "}I0");
sputc(s, LIPS_IS2);
} else {
- lputs(s, "}I0");
+ lputs(s, "}I1");
sputc(s, LIPS_IS2);
}
}