mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* marshal.c (marshal_load): ruby_verbose test should be wrapped by
RTEST(). * hash.c (rb_hash_index): should return nil (not the default value) if value is not in the hash. * bignum.c (rb_cstr2inum): "0 ff".hex should return 0, not 255. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3cfd65346b
commit
fe933ddc68
4 changed files with 20 additions and 2 deletions
14
ChangeLog
14
ChangeLog
|
|
@ -4,6 +4,20 @@ Tue Jul 31 12:55:35 2001 Nobuyoshi.Nakada <nobu.nokada@softhome.net> <nobu.nak
|
|||
with "/.".
|
||||
removed meaningless code.
|
||||
|
||||
Tue Jul 31 11:52:10 2001 akira yamada <akira@ruby-lang.org>
|
||||
|
||||
* marshal.c (marshal_load): ruby_verbose test should be wrapped by
|
||||
RTEST().
|
||||
|
||||
Mon Jul 30 17:54:23 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* hash.c (rb_hash_index): should return nil (not the default
|
||||
value) if value is not in the hash.
|
||||
|
||||
Mon Jul 30 03:19:53 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* bignum.c (rb_cstr2inum): "0 ff".hex should return 0, not 255.
|
||||
|
||||
Fri Jul 27 18:07:27 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* eval.c (rb_provided): extension should be guessed using
|
||||
|
|
|
|||
4
bignum.c
4
bignum.c
|
|
@ -243,6 +243,10 @@ rb_cstr2inum(str, base)
|
|||
str += 2;
|
||||
}
|
||||
while (*str && *str == '0') str++;
|
||||
if (ISSPACE(*str)) {
|
||||
if (badcheck) goto bad;
|
||||
return INT2FIX(0);
|
||||
}
|
||||
if (!*str) str--;
|
||||
len = 4*strlen(str)*sizeof(char);
|
||||
}
|
||||
|
|
|
|||
2
hash.c
2
hash.c
|
|
@ -361,7 +361,7 @@ rb_hash_index(hash, value)
|
|||
VALUE args[2];
|
||||
|
||||
args[0] = value;
|
||||
args[1] = RHASH(hash)->ifnone;
|
||||
args[1] = Qnil;
|
||||
|
||||
st_foreach(RHASH(hash)->tbl, index_i, args);
|
||||
|
||||
|
|
|
|||
|
|
@ -1067,7 +1067,7 @@ marshal_load(argc, argv)
|
|||
\tformat version %d.%d required; %d.%d given",
|
||||
MARSHAL_MAJOR, MARSHAL_MINOR, major, minor);
|
||||
}
|
||||
if (ruby_verbose && minor != MARSHAL_MINOR) {
|
||||
if (RTEST(ruby_verbose) && minor != MARSHAL_MINOR) {
|
||||
rb_warn("incompatible marshal file format (can be read)\n\
|
||||
\tformat version %d.%d required; %d.%d given",
|
||||
MARSHAL_MAJOR, MARSHAL_MINOR, major, minor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue