summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-field.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-04-27 11:46:37 +0200
committerTor Andersson <tor.andersson@artifex.com>2018-04-27 14:15:15 +0200
commit4ad2a93470e859159fe8507fb6c3e2ef7995aa9b (patch)
tree0c937587956b3d9f1eb12ebf041ca690c76b9c39 /source/pdf/pdf-field.c
parent617e280738a7dd91a6289f6e2e4e361785fb2281 (diff)
downloadmupdf-4ad2a93470e859159fe8507fb6c3e2ef7995aa9b.tar.xz
Use pdf_dict_get_int, etc.
Diffstat (limited to 'source/pdf/pdf-field.c')
-rw-r--r--source/pdf/pdf-field.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-field.c b/source/pdf/pdf-field.c
index 7989db8d..07a6e770 100644
--- a/source/pdf/pdf-field.c
+++ b/source/pdf/pdf-field.c
@@ -146,7 +146,7 @@ void pdf_set_field_type(fz_context *ctx, pdf_document *doc, pdf_obj *obj, int ty
if (setbits != 0 || clearbits != 0)
{
- int bits = pdf_to_int(ctx, pdf_dict_get(ctx, obj, PDF_NAME(Ff)));
+ int bits = pdf_dict_get_int(ctx, obj, PDF_NAME(Ff));
bits &= ~clearbits;
bits |= setbits;
pdf_dict_put_int(ctx, obj, PDF_NAME(Ff), bits);