summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index bd996c5..92b33f3 100644
--- a/vm.c
+++ b/vm.c
@@ -1652,7 +1652,7 @@ vm_exec(rb_thread_t *th)
}
}
- if (catch_iseq != 0) { /* found catch table */
+ if (catch_iseq != NULL) { /* found catch table */
/* enter catch scope */
cfp->sp = vm_base_ptr(cfp) + cont_sp;
cfp->pc = cfp->iseq->body->iseq_encoded + cont_pc;