Skip to content

Commit

Permalink
intptr_t should be used instead of uint32_t to hold a pointer.
Browse files Browse the repository at this point in the history
Fix warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  • Loading branch information
guoxiao committed Jul 31, 2016
1 parent 42fefef commit 339005e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ mrb_code_fetch_hook(mrb_state *mrb, mrb_irep *irep, mrb_code *pc, mrb_value *reg
if (!file || (dbg->prvfile == file && dbg->prvline == line)) {
return;
}
if((uint32_t)(dbg->prvci) < (uint32_t)(mrb->c->ci)) {
if((intptr_t)(dbg->prvci) < (intptr_t)(mrb->c->ci)) {
return;
}
dbg->prvci = NULL;
Expand Down

0 comments on commit 339005e

Please sign in to comment.