summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-04-16 07:16:45 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-04-16 07:16:45 +0000
commitb5e0d76b58928da5dee0fdbf1b806f566abafb03 (patch)
tree8179e1658ac96aee39b055fd1cf3e438a77dc982
parent2e0163f57603147dc0fb005191c7cff27d444be9 (diff)
alpha bug2/long
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--bignum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index c9300b8..3a4cb7e 100644
--- a/bignum.c
+++ b/bignum.c
@@ -220,7 +220,7 @@ rb_str2inum(str, base)
}
if (len <= (sizeof(VALUE)*CHAR_BIT)) {
- unsigned int val = strtoul((char*)str, 0, base);
+ unsigned long val = strtoul((char*)str, 0, base);
if (POSFIXABLE(val)) {
if (sign) return INT2FIX(val);