summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-interpret.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-01-30 16:14:24 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-01-31 11:57:00 +0100
commit43e6a76ff86747501b77f2e485bdfcd8c067fb8f (patch)
treea74407012dd8867f58d307212096920cfc1c642b /source/pdf/pdf-interpret.c
parente4b3a9d4c74272d421492b4967c6190cf26f8a73 (diff)
downloadmupdf-43e6a76ff86747501b77f2e485bdfcd8c067fb8f.tar.xz
Use convenience pdf dictionary/array creation functions.
Diffstat (limited to 'source/pdf/pdf-interpret.c')
-rw-r--r--source/pdf/pdf-interpret.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/pdf/pdf-interpret.c b/source/pdf/pdf-interpret.c
index 3aeeeae7..1c781b9e 100644
--- a/source/pdf/pdf-interpret.c
+++ b/source/pdf/pdf-interpret.c
@@ -848,13 +848,13 @@ pdf_process_stream(fz_context *ctx, pdf_processor *proc, pdf_csi *csi, fz_stream
in_text_array = 0;
break;
case PDF_TOK_REAL:
- pdf_array_push_drop(ctx, csi->obj, pdf_new_real(ctx, doc, buf->f));
+ pdf_array_push_real(ctx, csi->obj, buf->f);
break;
case PDF_TOK_INT:
- pdf_array_push_drop(ctx, csi->obj, pdf_new_int(ctx, doc, buf->i));
+ pdf_array_push_int(ctx, csi->obj, buf->i);
break;
case PDF_TOK_STRING:
- pdf_array_push_drop(ctx, csi->obj, pdf_new_string(ctx, doc, buf->scratch, buf->len));
+ pdf_array_push_string(ctx, csi->obj, buf->scratch, buf->len);
break;
case PDF_TOK_EOF:
break;