summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2020-09-28 10:20:26 +0100
committerChris Liddell <chris.liddell@artifex.com>2020-09-28 12:38:19 +0100
commitcd36db788b73674e9a18803f451ed910ddd66dba (patch)
tree0502ad4fa3545b13d7f917ae1b321d547a7f8a0a
parent787be772d87089ee8224b17ba50ac4adccc75ffe (diff)
downloadghostpdl-cd36db788b73674e9a18803f451ed910ddd66dba.tar.gz
Fix some casting confusion for special glyph CID/index values
And a whitespace/indentation issue. Noticed in passing....
-rw-r--r--base/gsccode.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/gsccode.h b/base/gsccode.h
index 9ed3aa786..e0bb5f9fb 100644
--- a/base/gsccode.h
+++ b/base/gsccode.h
@@ -79,9 +79,9 @@ typedef uint64_t gs_glyph;
#define GS_NO_GLYPH ((gs_glyph)0x7fffffff)
-# define GS_MIN_CID_GLYPH ((gs_glyph)0x80000000L)
+#define GS_MIN_CID_GLYPH ((gs_glyph)0x80000000)
-#define GS_MIN_GLYPH_INDEX (GS_MIN_CID_GLYPH | (GS_MIN_CID_GLYPH >> 1))
+#define GS_MIN_GLYPH_INDEX (gs_glyph)(GS_MIN_CID_GLYPH | (GS_MIN_CID_GLYPH >> 1))
#define GS_GLYPH_TAG (gs_glyph)(GS_MIN_CID_GLYPH | GS_MIN_GLYPH_INDEX)
#define GS_MAX_GLYPH max_ulong