summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2011-12-09 15:21:15 +0000
committerRobin Watts <robin.watts@artifex.com>2011-12-09 15:36:25 +0000
commit145087f15002b65666ca21e57f17e46528318ea0 (patch)
tree3aaff93cce60e59392479076d09d8c066b20c9cf
parentee3c576fae644f1c247ebd138f7199f5ed8f4664 (diff)
downloadmupdf-145087f15002b65666ca21e57f17e46528318ea0.tar.xz
Squash 2 warnings (fz_obj * != int).
-rw-r--r--pdf/pdf_xref.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf/pdf_xref.c b/pdf/pdf_xref.c
index c27e9d75..87a71aaf 100644
--- a/pdf/pdf_xref.c
+++ b/pdf/pdf_xref.c
@@ -707,8 +707,8 @@ pdf_open_xref_with_stream(fz_stream *file, char *password)
pdf_repair_obj_stms(xref);
}
- hasroot = fz_dict_gets(xref->trailer, "Root");
- hasinfo = fz_dict_gets(xref->trailer, "Info");
+ hasroot = (fz_dict_gets(xref->trailer, "Root") != NULL);
+ hasinfo = (fz_dict_gets(xref->trailer, "Info") != NULL);
for (i = 1; i < xref->len; i++)
{