summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 4c2ef9834e..d009a5f64a 100644
--- a/vm.c
+++ b/vm.c
@@ -2732,7 +2732,7 @@ rb_vm_each_stack_value(void *ptr, void (*cb)(VALUE, void*), void *ctx)
if (ec->vm_stack) {
VALUE *p = ec->vm_stack;
VALUE *sp = ec->cfp->sp;
- while (p <= sp) {
+ while (p < sp) {
if (!rb_special_const_p(*p)) {
cb(*p, ctx);
}