diff options
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 7fbdcd9c27..6a7bba92d4 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -448,7 +448,7 @@ check_cref(VALUE obj, int can_be_svar) } } -static rb_cref_t * +static inline rb_cref_t * vm_env_cref(const VALUE *ep) { rb_cref_t *cref; @@ -492,11 +492,12 @@ rb_vm_get_cref(const VALUE *ep) { rb_cref_t *cref = vm_env_cref(ep); - if (cref == 0) { + if (cref != NULL) { + return cref; + } + else { rb_bug("rb_vm_get_cref: unreachable"); } - - return cref; } void |