Skip to content

Commit

Permalink
Fixed mixture of signed/unsigned integers
Browse files Browse the repository at this point in the history
in mrbgems/mruby-bin-debugger.
  • Loading branch information
matz committed Feb 8, 2017
1 parent 4b32e65 commit d0ecf86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ check_lineno( mrb_irep_debug_info_file *info_file, uint16_t lineno )
}

static int32_t
get_break_index( mrb_debug_context *dbg, int32_t bpno )
get_break_index( mrb_debug_context *dbg, uint32_t bpno )
{
uint32_t i;
int32_t index;
Expand Down Expand Up @@ -296,7 +296,7 @@ mrb_debug_get_break_all( mrb_state *mrb, mrb_debug_context *dbg, uint32_t size,
int32_t
mrb_debug_get_break( mrb_state *mrb, mrb_debug_context *dbg, uint32_t bpno, mrb_debug_breakpoint *bp )
{
uint32_t index;
int32_t index;

if((mrb == NULL) || (dbg == NULL) || (bp == NULL)) {
return MRB_DEBUG_INVALID_ARGUMENT;
Expand Down
2 changes: 1 addition & 1 deletion mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ dirname(mrb_state *mrb, const char *path)
}

p = strrchr(path, '/');
len = p != NULL ? p - path : strlen(path);
len = p != NULL ? (size_t)(p - path) : strlen(path);

dir = mrb_malloc(mrb, len + 1);
strncpy(dir, path, len);
Expand Down

0 comments on commit d0ecf86

Please sign in to comment.