From 4ad2a93470e859159fe8507fb6c3e2ef7995aa9b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 27 Apr 2018 11:46:37 +0200 Subject: Use pdf_dict_get_int, etc. --- source/pdf/pdf-field.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/pdf/pdf-field.c') 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); -- cgit v1.2.3