diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2022-09-14 16:27:40 +0100 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2022-09-19 16:49:19 +0100 |
commit | 953ee1900fcb3887dfc8a816b2f9f03e6b19ef7f (patch) | |
tree | c7895452372e8b555b2900281643f69eb34fb1e4 | |
parent | d690505fecbef8c28aa3a19a1932b05583e821d2 (diff) | |
download | ghostpdl-953ee1900fcb3887dfc8a816b2f9f03e6b19ef7f.tar.gz |
Don't use pdfi_type_of() on things not pdf_objs
-rw-r--r-- | pdf/pdf_fontps.c | 4 |
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; } |