summaryrefslogtreecommitdiff
path: root/source/tools/murun.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/tools/murun.c')
-rw-r--r--source/tools/murun.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/tools/murun.c b/source/tools/murun.c
index 8e99cac5..26ff1a57 100644
--- a/source/tools/murun.c
+++ b/source/tools/murun.c
@@ -732,7 +732,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, (unsigned char*)str, strlen(str));
+ buf = fz_new_buffer_from_shared_data(ctx, str, strlen(str));
fz_catch(ctx)
rethrow(J);
}
@@ -1862,8 +1862,8 @@ 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;
- unsigned char *data;
- unsigned int size;
+ const char *data;
+ int size;
fz_font *font = NULL;
fz_try(ctx) {