diff options
author | rlar <rlar> | 2016-03-01 17:43:44 +0100 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2016-03-08 15:20:45 -0500 |
commit | 598ba7fd4c8dcd3e0f8a1857abbb81e8c40b0a3e (patch) | |
tree | 22b843e83a6788cfc5604a7bd778c1a0b7ee8057 /src | |
parent | e8e83d2dbee2a568dfdd6ea5e58c227eabff0dea (diff) |
yytbl_data_compress(), change type of local newsz to get rid of warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/tables.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tables.c b/src/tables.c index df4fb58..d8bb237 100644 --- a/src/tables.c +++ b/src/tables.c @@ -460,7 +460,8 @@ static size_t min_int_size (struct yytbl_data *tbl) */ void yytbl_data_compress (struct yytbl_data *tbl) { - flex_int32_t i, newsz, total_len; + flex_int32_t i, total_len; + size_t newsz; struct yytbl_data newtbl; yytbl_data_init (&newtbl, tbl->td_id); @@ -471,11 +472,11 @@ void yytbl_data_compress (struct yytbl_data *tbl) newsz = min_int_size (tbl); - if (newsz == (int) YYTDFLAGS2BYTES (tbl->td_flags)) + if (newsz == YYTDFLAGS2BYTES (tbl->td_flags)) /* No change in this table needed. */ return; - if (newsz > (int) YYTDFLAGS2BYTES (tbl->td_flags)) { + if (newsz > YYTDFLAGS2BYTES (tbl->td_flags)) { flex_die (_("detected negative compression")); return; } |