summaryrefslogtreecommitdiff
path: root/base/ttfmain.c
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 07:51:36 +0100
commita541be98b6dcbeec9a1abdaa5a7f136b0138950e (patch)
tree421115966cfb218c9f5ad09b345d33b6cc27861c /base/ttfmain.c
parentfb0af3efbe9b18c876d6a80e6ea2d1206b1fa5eb (diff)
downloadghostpdl-a541be98b6dcbeec9a1abdaa5a7f136b0138950e.tar.gz
Coverity 380740: Fix signed/unsigned confusion
Diffstat (limited to 'base/ttfmain.c')
-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;
}