diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-04 07:22:49 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-04 07:22:49 +0000 |
commit | 9188504af59ac09ade3ac0b37807edbb190084cd (patch) | |
tree | 4acfe2bbbc0cfdc67fd5f089c12e6bd27a84f7e2 /ext | |
parent | 6c7a8b177fa4232a89c0224bc334080303212b95 (diff) |
* ext/objspace/objspace.c (count_nodes): fix key for unknown node.
based on a patch by tmm1 (Aman Gupta) in [ruby-core:53130] [Bug #8014]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@40099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/objspace/objspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c index 66e33a38c4..fd08158676 100644 --- a/ext/objspace/objspace.c +++ b/ext/objspace/objspace.c @@ -531,7 +531,7 @@ count_nodes(int argc, VALUE *argv, VALUE os) COUNT_NODE(NODE_LAMBDA); COUNT_NODE(NODE_OPTBLOCK); #undef COUNT_NODE - default: node = INT2FIX(nodes[i]); + default: node = INT2FIX(i); } rb_hash_aset(hash, node, SIZET2NUM(nodes[i])); } |