summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-03-10 12:36:58 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-03-10 12:36:58 +0900
commit2f299cf4dc930890faecbe5d54235996e37a4c8b (patch)
tree68fc3b38f9b16157bb3623be27874855e7fe95a9 /src
parente8f09f93930e0c99769e4e4ded2342638ac3d5e5 (diff)
downloadmruby-2f299cf4dc930890faecbe5d54235996e37a4c8b.tar.gz
mruby-2f299cf4dc930890faecbe5d54235996e37a4c8b.zip
Simplify expression; ref #3490
Diffstat (limited to 'src')
-rw-r--r--src/vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm.c b/src/vm.c
index e9c8b81bc..2f999449d 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -1345,7 +1345,7 @@ RETRY_TRY_BLOCK:
int a = GETARG_A(i);
int n = GETARG_C(i);
- if (mid == 0 || !mrb->c->ci->target_class) {
+ if (mid == 0 || !ci->target_class) {
mrb_value exc;
exc = mrb_exc_new_str_lit(mrb, E_NOMETHOD_ERROR, "super called outside of method");