From ecaf3c39393c49f39154450cfa77e3d8a3ace4b7 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 1 Jul 2008 16:59:20 +0000 Subject: * insns.def (trace): C99ism. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ insns.def | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2011d0c05..ffdfdf7aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Jul 2 01:58:19 2008 NAKAMURA Usaku + + * insns.def (trace): C99ism. + Wed Jul 2 01:53:40 2008 Yusuke Endoh * Add coverage measurement constant COVERAGE__. This constant is not diff --git a/insns.def b/insns.def index 96023a4ad..f0eaefe66 100644 --- a/insns.def +++ b/insns.def @@ -854,10 +854,11 @@ trace rb_event_flag_t flag = nf; if (coverage) { long line = rb_sourceline() - 1; + long count; if (RARRAY_PTR(coverage)[line] == Qnil) { rb_bug("bug"); } - long count = FIX2LONG(RARRAY_PTR(coverage)[line]) + 1; + count = FIX2LONG(RARRAY_PTR(coverage)[line]) + 1; if (POSFIXABLE(count)) { RARRAY_PTR(coverage)[line] = LONG2FIX(count); } -- cgit