]> granicus.if.org Git - flex/commitdiff
size_t tweaks
authorVern Paxson <vern@ee.lbl.gov>
Sat, 5 Nov 1994 17:08:28 +0000 (17:08 +0000)
committerVern Paxson <vern@ee.lbl.gov>
Sat, 5 Nov 1994 17:08:28 +0000 (17:08 +0000)
tblcmp.c

index e8dd61540d543084603a9b10954b7e8630b3f199..32d2cd5751227a40a14960a0116d526d876418ff 100644 (file)
--- 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;