Michael G. Schwern [Fri, 1 Jun 2001 12:00:29 +0000 (13:00 +0100)]
Message-ID: <
20010601120029.F29027@blackrider.blackstar.co.uk>
(But use Zero() instead of memset.)
p4raw-id: //depot/perl@10377
register HENT **oentry;
a = (HENT**) saferealloc((char*)tb->tbl_array, newsize * sizeof(HENT*));
- bzero((char*)&a[oldsize], oldsize * sizeof(HENT*)); /* zero second half */
+ Zero(&a[oldsize], oldsize, HENT*); /* zero second half */
tb->tbl_max = --newsize;
tb->tbl_array = a;
tb->tbl_fill = 0;
tb->tbl_max = 7;
hiterinit(tb); /* so each() will start off right */
- bzero((char*)tb->tbl_array, 8 * sizeof(HENT*));
+ Zero(tb->tbl_array, 8, sizeof(HENT*));
return tb;
}