aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--eval_jump.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c0213a6d91..f679027421 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Jun 8 16:11:00 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval_jump.h: th->errinfo should clear with nil.
+
Fri Jun 8 14:53:28 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (call_args): allow splat argument after unpacked
diff --git a/eval_jump.h b/eval_jump.h
index c3673114da..e281e420db 100644
--- a/eval_jump.h
+++ b/eval_jump.h
@@ -106,7 +106,7 @@ rb_f_catch(VALUE dmy, VALUE tag)
}
else if (state == TAG_THROW && th->errinfo == tag) {
val = th->tag->retval;
- th->errinfo = 0;
+ th->errinfo = Qnil;
state = 0;
}
POP_TAG();