summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-12 06:07:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-12 06:07:47 +0000
commita60b255a36c90ca0557de952f2d1a0955bb3dad7 (patch)
tree7d887e0665037ac870c3b78d602f719eaed79cef
parentc0a03a6b0084a0f1b5f3941b27dbe15d66750519 (diff)
* random.c (rand_init): suppress warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--random.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index fbd1b83c64..afcda77173 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sat Feb 12 15:07:23 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (rand_init): suppress warning.
+
Sat Feb 12 13:54:03 2005 Tanaka Akira <akr@m17n.org>
* lib/open-uri.rb: support https if the platform provides CA
@@ -12,7 +16,7 @@ Fri Feb 11 11:33:53 2005 Tanaka Akira <akr@m17n.org>
* lib/open-uri.rb (URI::HTTP#proxy_open): new option supported:
:http_basic_authentication.
- suggested by Kent Sibilev. [ruby-core:4392]
+ suggested by Kent Sibilev. [ruby-core:4392]
Thu Feb 10 11:14:17 2005 NAKAMURA Usaku <usa@ruby-lang.org>
diff --git a/random.c b/random.c
index 658cce4b92..618a3a8fa3 100644
--- a/random.c
+++ b/random.c
@@ -216,7 +216,7 @@ rand_init(vseed)
rb_obj_classname(vseed));
}
len = (len + 3) / 4; /* number of 32bit words */
- buf = ALLOC_N(long, len); /* allocate longs for init_by_array */
+ buf = ALLOC_N(unsigned long, len); /* allocate longs for init_by_array */
memset(buf, 0, len * sizeof(long));
if (FIXNUM_P(seed)) {
buf[0] = FIX2ULONG(seed) & 0xffffffff;