aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 86f6071a38..6b49be68c1 100644
--- a/gc.c
+++ b/gc.c
@@ -7695,7 +7695,7 @@ rb_memerror(void)
rb_thread_raised_set(th, RAISED_NOMEMORY);
exc = ruby_vm_special_exception_copy(exc);
}
- th->errinfo = exc;
+ th->ec.errinfo = exc;
TH_JUMP_TAG(th, TAG_RAISE);
}