1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* eval.c (rb_yield_0): 0 (= Qfalse) is a valid value, so that

default self should be checked by klass == 0.

* bignum.c (rb_cstr2inum): should disallow '++1', '+-1', etc.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2001-03-14 04:45:46 +00:00
parent a22cbaa697
commit 53ff8df72f
4 changed files with 14 additions and 3 deletions

View file

@ -1,3 +1,10 @@
Wed Mar 14 10:41:34 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_yield_0): 0 (= Qfalse) is a valid value, so that
default self should be checked by klass == 0.
* bignum.c (rb_cstr2inum): should disallow '++1', '+-1', etc.
Tue Mar 13 17:51:09 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (ev_const_defined): add new parameter self for special

View file

@ -209,6 +209,10 @@ rb_cstr2inum(str, base)
str++;
sign = 0;
}
if (str[0] == '+' || str[0] == '-') {
if (badcheck) goto bad;
return INT2FIX(0);
}
if (base == 0) {
if (str[0] == '0') {
if (str[1] == 'x' || str[1] == 'X') {

2
eval.c
View file

@ -3530,7 +3530,7 @@ rb_yield_0(val, self, klass, acheck)
ruby_dyna_vars = block->dyna_vars;
}
ruby_class = klass?klass:block->klass;
if (!self) self = block->self;
if (!klass) self = block->self;
node = block->body;
if (block->var) {

View file

@ -1,4 +1,4 @@
#define RUBY_VERSION "1.7.0"
#define RUBY_RELEASE_DATE "2001-03-13"
#define RUBY_RELEASE_DATE "2001-03-14"
#define RUBY_VERSION_CODE 170
#define RUBY_RELEASE_CODE 20010313
#define RUBY_RELEASE_CODE 20010314