summaryrefslogtreecommitdiffhomepage
path: root/src/cdump.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-07-09 14:10:48 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-07-09 14:10:48 +0900
commitb5039fdb6c746cc77d0b3a499c0cf0baacc4f815 (patch)
treef423ca1151b54d7faa0de4b7e1b44198999d17ba /src/cdump.c
parent29556a49a0419ba60721efe2b0fa2c9ecff863f7 (diff)
downloadmruby-b5039fdb6c746cc77d0b3a499c0cf0baacc4f815.tar.gz
mruby-b5039fdb6c746cc77d0b3a499c0cf0baacc4f815.zip
debug.h: use `uint8_t` instead of `char` for BER compressed binary.
Diffstat (limited to 'src/cdump.c')
-rw-r--r--src/cdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cdump.c b/src/cdump.c
index 84cc24ae4..ecc27d9a1 100644
--- a/src/cdump.c
+++ b/src/cdump.c
@@ -311,7 +311,7 @@ cdump_debug(mrb_state *mrb, const char *name, int n, mrb_irep_debug_info *info,
case mrb_debug_line_packed_map:
line_type = "mrb_debug_line_packed_map";
fprintf(fp, "static char %s_debug_lines_%d[] = \"", name, n);
- char *pmap = info->files[0]->lines.packed_map;
+ uint8_t *pmap = info->files[0]->lines.packed_map;
for (i=0; i<len; i++) {
fprintf(fp, "\\x%02x", pmap[i]&0xff);
}