diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-03-22 13:24:23 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-03-23 15:58:47 +0100 |
commit | b2c3d9e7ca40e001d3ee18975427224b726dc4d1 (patch) | |
tree | d113ff85ce07dbd81ae45f8f18b303e8787d26cf /source/fitz/buffer.c | |
parent | 81109bf17aada37f678b6adbdb9fa8eca1cd3163 (diff) | |
download | mupdf-b2c3d9e7ca40e001d3ee18975427224b726dc4d1.tar.xz |
Compile embedded fonts in separate C files.
Also change unsigned char into const char for embedded data.
Diffstat (limited to 'source/fitz/buffer.c')
-rw-r--r-- | source/fitz/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/buffer.c b/source/fitz/buffer.c index d1609ef1..6f0e7057 100644 --- a/source/fitz/buffer.c +++ b/source/fitz/buffer.c @@ -41,13 +41,13 @@ fz_new_buffer_from_data(fz_context *ctx, unsigned char *data, int size) } fz_buffer * -fz_new_buffer_from_shared_data(fz_context *ctx, unsigned char *data, int size) +fz_new_buffer_from_shared_data(fz_context *ctx, const char *data, int size) { fz_buffer *b; b = fz_malloc_struct(ctx, fz_buffer); b->refs = 1; - b->data = data; + b->data = (unsigned char *)data; /* cast away const */ b->cap = size; b->len = size; b->unused_bits = 0; |