iseq.c (rb_iseq_line_trace_each): explicit cast

Fix 36814282
Tested with -Wconversion since my gcc lacks -Wshorten-64-to-32

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
normal 2014-10-01 23:03:35 +00:00
parent 11f3526734
commit 57da36ebcf
2 changed files with 8 additions and 1 deletions

4
iseq.c
View file

@ -2154,7 +2154,9 @@ rb_iseq_line_trace_each(VALUE iseqval, int (*func)(int line, rb_event_flag_t *ev
insn = iseq_original[pos];
if (insn == BIN(trace)) {
rb_event_flag_t current_events = (VALUE)iseq_original[pos+1];
rb_event_flag_t current_events;
current_events = (rb_event_flag_t)iseq_original[pos+1];
if (current_events & RUBY_EVENT_LINE) {
rb_event_flag_t events = current_events & RUBY_EVENT_SPECIFIED_LINE;