summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-08 13:57:06 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-08 13:57:06 +0000
commitcaf3933babe1be5bba95b271b567caec92855cdb (patch)
tree001d1e98fd86421447657d3fd4b2c461b8ffa4c4 /iseq.c
parent7e16f9e7777781a4969537b5d9f659b1356b2786 (diff)
* thread.c (rb_enable_coverages): hide coverage array by setting 0 to
klass during measurement. * parse.y (coverage, yycompile0): ditto. * iseq.c (prepare_iseq_build): use rb_hash_lookup instead of rb_hash_aref. * thread.c (rb_coverage_result): restore klass of coverage array and return it. * theaad.c (update_coverage): chcek whether its klass is 0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iseq.c b/iseq.c
index d97206e..a239830 100644
--- a/iseq.c
+++ b/iseq.c
@@ -197,7 +197,7 @@ prepare_iseq_build(rb_iseq_t *iseq,
extern VALUE rb_vm_get_coverages(void);
VALUE coverages = rb_vm_get_coverages();
if (RTEST(coverages)) {
- iseq->coverage = rb_hash_aref(coverages, filename);
+ iseq->coverage = rb_hash_lookup(coverages, filename);
if (NIL_P(iseq->coverage)) iseq->coverage = Qfalse;
}
}