diff options
Diffstat (limited to 'source/tools/murun.c')
-rw-r--r-- | source/tools/murun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/tools/murun.c b/source/tools/murun.c index 47cc1884..5e627295 100644 --- a/source/tools/murun.c +++ b/source/tools/murun.c @@ -763,7 +763,7 @@ static fz_buffer *ffi_tobuffer(js_State *J, int idx) else { const char *str = js_tostring(J, idx); fz_try(ctx) - buf = fz_new_buffer_from_shared_data(ctx, str, strlen(str)); + buf = fz_new_buffer_from_shared_data(ctx, (const unsigned char *)str, strlen(str)); fz_catch(ctx) rethrow(J); } @@ -2253,7 +2253,7 @@ static void ffi_new_Font(js_State *J) fz_context *ctx = js_getcontext(J); const char *name = js_tostring(J, 1); int index = js_isnumber(J, 2) ? js_tonumber(J, 2) : 0; - const char *data; + const unsigned char *data; int size; fz_font *font = NULL; |