diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | random.c | 2 |
2 files changed, 6 insertions, 2 deletions
@@ -1,7 +1,11 @@ +Sat Feb 12 15:07:23 2005 Nobuyoshi Nakada <[email protected]> + + * random.c (rand_init): suppress warning. + Sat Feb 12 14:10:24 2005 Tanaka Akira <[email protected]> * lib/open-uri.rb (OpenURI.open_http): reject userinfo explicitly. - + Sat Feb 12 13:54:03 2005 Tanaka Akira <[email protected]> * lib/open-uri.rb: support https if the platform provides CA @@ -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; |