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 | 7889a39f6405da016d8124dfdc77183fe660b60e (patch) | |
tree | da18258b00635144f1ac18f54885ef9680e14754 /random.c | |
parent | b76fdabb13592a2b025a85a563fa2bc6e3b34d5b (diff) | |
download | ruby-7889a39f6405da016d8124dfdc77183fe660b60e.tar.gz ruby-7889a39f6405da016d8124dfdc77183fe660b60e.tar.xz ruby-7889a39f6405da016d8124dfdc77183fe660b60e.zip |
* random.c (rand_init): suppress warning.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@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; |