mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_insnhelper.c (vm_get_cref0): cref is stacked only in normal
iseqs, so check if it is the case first. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
67d1d75fcb
commit
d1a4b54218
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Thu Sep 23 23:09:08 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* vm_insnhelper.c (vm_get_cref0): cref is stacked only in normal
|
||||||
|
iseqs, so check if it is the case first.
|
||||||
|
|
||||||
Thu Sep 23 23:08:41 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu Sep 23 23:08:41 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* tool/config.sub: mingw64 should use x86_64. [ruby-core:32514]
|
* tool/config.sub: mingw64 should use x86_64. [ruby-core:32514]
|
||||||
|
|
|
@ -1057,6 +1057,7 @@ vm_get_cref0(const rb_iseq_t *iseq, const VALUE *lfp, const VALUE *dfp)
|
||||||
{
|
{
|
||||||
while (1) {
|
while (1) {
|
||||||
if (lfp == dfp) {
|
if (lfp == dfp) {
|
||||||
|
if (!RUBY_VM_NORMAL_ISEQ_P(iseq)) return NULL;
|
||||||
return iseq->cref_stack;
|
return iseq->cref_stack;
|
||||||
}
|
}
|
||||||
else if (dfp[-1] != Qnil) {
|
else if (dfp[-1] != Qnil) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue