diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-07-31 06:20:10 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-07-31 06:20:10 +0000 |
commit | fe933ddc685942f3722dac9b09d23d9243a72ddc (patch) | |
tree | 92e27e4c6b21eda16fd985a2549563d66d4fff83 /bignum.c | |
parent | 3cfd65346b3f9a36da05d81a530c8c33dd4209ed (diff) |
* 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
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); } |