From 2a4a3e671106e3b75c3322f4eb0e4133f9293df3 Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Sat, 5 Nov 1994 17:08:28 +0000 Subject: [PATCH] size_t tweaks --- tblcmp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tblcmp.c b/tblcmp.c index e8dd615..32d2cd5 100644 --- a/tblcmp.c +++ b/tblcmp.c @@ -310,7 +310,7 @@ void expand_nxt_chk() chk = reallocate_integer_array( chk, current_max_xpairs ); zero_out( (char *) (chk + old_max), - MAX_XPAIRS_INCREMENT * sizeof( int ) / sizeof( char ) ); + (size_t) (MAX_XPAIRS_INCREMENT * sizeof( int )) ); } @@ -436,8 +436,7 @@ void inittbl() { register int i; - zero_out( (char *) chk, - current_max_xpairs * sizeof( int ) / sizeof( char ) ); + zero_out( (char *) chk, (size_t) (current_max_xpairs * sizeof( int )) ); tblend = 0; firstfree = tblend + 1; -- 2.50.1