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

* random.c (rand_init): suppress warning.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2005-02-12 06:07:47 +00:00
parent 1aacb7a948
commit 4413bd95c6
2 changed files with 6 additions and 2 deletions

View file

@ -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 14:10:24 2005 Tanaka Akira <akr@m17n.org>
* lib/open-uri.rb (OpenURI.open_http): reject userinfo explicitly.

View file

@ -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;