summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-debugger
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 /mrbgems/mruby-bin-debugger
parent29556a49a0419ba60721efe2b0fa2c9ecff863f7 (diff)
downloadmruby-b5039fdb6c746cc77d0b3a499c0cf0baacc4f815.tar.gz
mruby-b5039fdb6c746cc77d0b3a499c0cf0baacc4f815.zip
debug.h: use `uint8_t` instead of `char` for BER compressed binary.
Diffstat (limited to 'mrbgems/mruby-bin-debugger')
-rw-r--r--mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c b/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c
index 451ac48bf..a26630599 100644
--- a/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c
+++ b/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c
@@ -21,7 +21,7 @@
#define MRB_DEBUG_BP_LINENO_OK (0x0002)
static uint32_t
-packed_int_decode(char *p, char **newpos)
+packed_int_decode(uint8_t *p, uint8_t **newpos)
{
size_t i = 0, shift = 0;
uint32_t n = 0;
@@ -60,8 +60,8 @@ check_lineno(mrb_irep_debug_info_file *info_file, uint16_t lineno)
case mrb_debug_line_packed_map:
{
- char *p = info_file->lines.packed_map;
- char *pend = p + count;
+ uint8_t *p = info_file->lines.packed_map;
+ uint8_t *pend = p + count;
uint32_t line = 0;
while (p < pend) {
packed_int_decode(p, &p);