ruby-changes:35678
From: normal <ko1@a...>
Date: Thu, 2 Oct 2014 08:03:52 +0900 (JST)
Subject: [ruby-changes:35678] normal:r47760 (trunk): iseq.c (rb_iseq_line_trace_each): explicit cast
normal 2014-10-02 08:03:35 +0900 (Thu, 02 Oct 2014) New Revision: 47760 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47760 Log: iseq.c (rb_iseq_line_trace_each): explicit cast Fix https://travis-ci.org/ruby/ruby/jobs/36814282 Tested with -Wconversion since my gcc lacks -Wshorten-64-to-32 Modified files: trunk/ChangeLog trunk/iseq.c Index: ChangeLog =================================================================== --- ChangeLog (revision 47759) +++ ChangeLog (revision 47760) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Oct 2 07:56:49 2014 Eric Wong <e@8...> + + * iseq.c (rb_iseq_line_trace_each): explicit cast + Fix https://travis-ci.org/ruby/ruby/jobs/36814282 + Thu Oct 2 05:40:05 2014 Eric Wong <e@8...> * ruby.h: set rb_event_flag_t to uint32_t Index: iseq.c =================================================================== --- iseq.c (revision 47759) +++ iseq.c (revision 47760) @@ -2154,7 +2154,9 @@ rb_iseq_line_trace_each(VALUE iseqval, i https://github.com/ruby/ruby/blob/trunk/iseq.c#L2154 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/