summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2022-09-14 16:27:40 +0100
committerChris Liddell <chris.liddell@artifex.com>2022-09-19 16:49:19 +0100
commit953ee1900fcb3887dfc8a816b2f9f03e6b19ef7f (patch)
treec7895452372e8b555b2900281643f69eb34fb1e4
parentd690505fecbef8c28aa3a19a1932b05583e821d2 (diff)
downloadghostpdl-953ee1900fcb3887dfc8a816b2f9f03e6b19ef7f.tar.gz
Don't use pdfi_type_of() on things not pdf_objs
-rw-r--r--pdf/pdf_fontps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf/pdf_fontps.c b/pdf/pdf_fontps.c
index b24771429..5cfa16521 100644
--- a/pdf/pdf_fontps.c
+++ b/pdf/pdf_fontps.c
@@ -385,11 +385,11 @@ static inline bool pdf_ps_name_cmp(pdf_ps_stack_object_t *obj, const char *names
l2 = strlen(namestr);
}
- if (pdfi_type_of(obj) == PDF_PS_OBJ_NAME) {
+ if (obj->type == PDF_PS_OBJ_NAME) {
d = obj->val.name;
l1 = obj->size;
}
- else if (pdfi_type_of(obj) == PDF_PS_OBJ_STRING) {
+ else if (obj->type == PDF_PS_OBJ_STRING) {
d = obj->val.name;
l1 = obj->size;
}