diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2020-05-14 21:00:34 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2020-05-15 00:04:02 +0100 |
commit | b380ebb41878645d0d7bb2b07155667acac4fa99 (patch) | |
tree | 859613c7c8cd59f58a679516a0b887c7d79f5c2a /psi/zfont.c | |
parent | d578f2517bbc6261a0cf31f8e2e88b2990241c0a (diff) | |
download | ghostpdl-b380ebb41878645d0d7bb2b07155667acac4fa99.tar.gz |
lgtm.com fixes: Fix cases where comparisons are constant.
Diffstat (limited to 'psi/zfont.c')
-rw-r--r-- | psi/zfont.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/psi/zfont.c b/psi/zfont.c index e812c7b62..5d7dd15ff 100644 --- a/psi/zfont.c +++ b/psi/zfont.c @@ -41,8 +41,11 @@ static int setup_unicode_decoder(i_ctx_t *i_ctx_p, ref *Decoding); bool zfont_mark_glyph_name(const gs_memory_t *mem, gs_glyph glyph, void *ignore_data) { - return (glyph >= gs_c_min_std_encoding_glyph || glyph == GS_NO_GLYPH ? false : - name_mark_index(mem, (uint) glyph)); + if (glyph == GS_NO_GLYPH) + return false; + if (glyph >= gs_c_min_std_encoding_glyph) + return false; + return name_mark_index(mem, (uint) glyph); } /* Get a global glyph code. */ |