diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-12 06:07:47 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-12 06:07:47 +0000 |
commit | a60b255a36c90ca0557de952f2d1a0955bb3dad7 (patch) | |
tree | 7d887e0665037ac870c3b78d602f719eaed79cef /random.c | |
parent | c0a03a6b0084a0f1b5f3941b27dbe15d66750519 (diff) | |
download | ruby-a60b255a36c90ca0557de952f2d1a0955bb3dad7.tar.gz |
* 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
Diffstat (limited to 'random.c')
-rw-r--r-- | random.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |