diff --git a/ChangeLog b/ChangeLog index d27502d090..59cfb14794 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,11 @@ +Sat Feb 12 15:07:23 2005 Nobuyoshi Nakada + + * random.c (rand_init): suppress warning. + Sat Feb 12 14:10:24 2005 Tanaka Akira * lib/open-uri.rb (OpenURI.open_http): reject userinfo explicitly. - + Sat Feb 12 13:54:03 2005 Tanaka Akira * lib/open-uri.rb: support https if the platform provides CA 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;