summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2022-09-04 17:00:00 +0100
committerChris Liddell <chris.liddell@artifex.com>2022-09-06 08:30:27 +0100
commitea03f1a59ba917ca33a7ec72ac69d5aa0a683f50 (patch)
treee3bef8f44b26d480710cf117c5b63a9bd059de2b
parent17b00ae32bce89d6e8125bbd2c46346473eef736 (diff)
downloadghostpdl-ea03f1a59ba917ca33a7ec72ac69d5aa0a683f50.tar.gz
Coverity 380740: Fix signed/unsigned confusion
-rw-r--r--base/ttfmain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/ttfmain.c b/base/ttfmain.c
index 498cc9214..82593a001 100644
--- a/base/ttfmain.c
+++ b/base/ttfmain.c
@@ -651,7 +651,7 @@ retry:
e->m.ty = Scale_Y( &exec->metrics, e->arg2 ) << 10;
} else {
if (e->arg1 < 0 || e->arg1 > pts->n_points
- || (gOutline->pointCount + e->arg2) < 0 || (gOutline->pointCount + e->arg2) > pts->n_points) {
+ || ((int)gOutline->pointCount + e->arg2) < 0 || (gOutline->pointCount + e->arg2) > pts->n_points) {
error = fBadFontData;
goto ex;
}