Skip to content
Permalink
Browse files
intptr_t should be used instead of uint32_t to hold a pointer.
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 339005e1d5e09729416920bbdec70fe3318d7e89
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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;

0 comments on commit 339005e

Please sign in to comment.