summaryrefslogtreecommitdiff
path: root/pdf/pdf_xobject.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-06-13 16:29:58 +0100
committerRobin Watts <robin.watts@artifex.com>2012-06-13 16:29:58 +0100
commit1e91d2dcb222bef831e85fc0b6e569b8f5436458 (patch)
tree9037b37afb3d40ec898e80e860095fb8e4c0a90d /pdf/pdf_xobject.c
parent4ef5e5861f9e3ca3b906c87bc2d08e057ec7e9cf (diff)
downloadmupdf-1e91d2dcb222bef831e85fc0b6e569b8f5436458.tar.xz
Tweak pdf_new_{rect,matrix,xobject} to avoid warnings.
These functions currently call pdf_array_put, but this fails to extend the array. Change to use pdf_array_push instead.
Diffstat (limited to 'pdf/pdf_xobject.c')
-rw-r--r--pdf/pdf_xobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf/pdf_xobject.c b/pdf/pdf_xobject.c
index 877a8a28..f21ecaf6 100644
--- a/pdf/pdf_xobject.c
+++ b/pdf/pdf_xobject.c
@@ -156,11 +156,11 @@ pdf_new_xobject(pdf_document *xref, fz_rect *bbox, fz_matrix *mat)
res = pdf_new_dict(ctx, 0);
procset = pdf_new_array(ctx, 2);
obj = fz_new_name(ctx, "PDF");
- pdf_array_put(procset, 0, obj);
+ pdf_array_push(procset, obj);
pdf_drop_obj(obj);
obj = NULL;
obj = fz_new_name(ctx, "Text");
- pdf_array_put(procset, 1, obj);
+ pdf_array_push(procset, obj);
pdf_drop_obj(obj);
obj = NULL;
pdf_dict_puts(res, "ProcSet", procset);