aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 555aa2b96e..c727ea796f 100644
--- a/eval.c
+++ b/eval.c
@@ -2508,7 +2508,8 @@ errinfo_place(void)
return &cfp->dfp[-1];
}
else if (cfp->iseq->type == ISEQ_TYPE_ENSURE &&
- TYPE(cfp->dfp[-1]) != T_NODE) {
+ TYPE(cfp->dfp[-1]) != T_NODE &&
+ !FIXNUM_P(cfp->dfp[-1])) {
return &cfp->dfp[-1];
}
}