summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-06-08 12:42:57 +0100
committerRobin Watts <robin.watts@artifex.com>2016-06-08 13:53:56 +0100
commit2fd7f11cfe4ebdc6d1035db521e61d15101ab36e (patch)
treecf18d3cc3ab606b4f22684ef4ea2ea3f06d41602 /source/pdf
parentfea0f8467f983cc5c1075d19787a4b398d0d5e22 (diff)
downloadmupdf-2fd7f11cfe4ebdc6d1035db521e61d15101ab36e.tar.xz
Move to using size_t for all mallocs.
This has knock on effects in the store. fix
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/pdf-cmap-load.c2
-rw-r--r--source/pdf/pdf-shade.c2
-rw-r--r--source/pdf/pdf-store.c2
-rw-r--r--source/pdf/pdf-xobject.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/source/pdf/pdf-cmap-load.c b/source/pdf/pdf-cmap-load.c
index 1c72e139..06359242 100644
--- a/source/pdf/pdf-cmap-load.c
+++ b/source/pdf/pdf-cmap-load.c
@@ -1,6 +1,6 @@
#include "mupdf/pdf.h"
-unsigned int
+size_t
pdf_cmap_size(fz_context *ctx, pdf_cmap *cmap)
{
if (cmap == NULL)
diff --git a/source/pdf/pdf-shade.c b/source/pdf/pdf-shade.c
index 265f3cc0..b8e138c0 100644
--- a/source/pdf/pdf-shade.c
+++ b/source/pdf/pdf-shade.c
@@ -424,7 +424,7 @@ pdf_load_shading_dict(fz_context *ctx, pdf_document *doc, pdf_obj *dict, const f
return shade;
}
-static unsigned int
+static size_t
fz_shade_size(fz_shade *s)
{
if (s == NULL)
diff --git a/source/pdf/pdf-store.c b/source/pdf/pdf-store.c
index 81dd6f0f..7be7eafe 100644
--- a/source/pdf/pdf-store.c
+++ b/source/pdf/pdf-store.c
@@ -52,7 +52,7 @@ static fz_store_type pdf_obj_store_type =
};
void
-pdf_store_item(fz_context *ctx, pdf_obj *key, void *val, unsigned int itemsize)
+pdf_store_item(fz_context *ctx, pdf_obj *key, void *val, size_t itemsize)
{
void *existing;
existing = fz_store_item(ctx, key, val, itemsize, &pdf_obj_store_type);
diff --git a/source/pdf/pdf-xobject.c b/source/pdf/pdf-xobject.c
index 316ca973..cd8418bd 100644
--- a/source/pdf/pdf-xobject.c
+++ b/source/pdf/pdf-xobject.c
@@ -25,7 +25,7 @@ pdf_drop_xobject_imp(fz_context *ctx, fz_storable *xobj_)
fz_free(ctx, xobj);
}
-static unsigned int
+static size_t
pdf_xobject_size(pdf_xobject *xobj)
{
if (xobj == NULL)