summaryrefslogtreecommitdiff
path: root/src/tables.c
diff options
context:
space:
mode:
authorrlar <rlar>2016-03-01 17:38:16 +0100
committerWill Estes <westes575@gmail.com>2016-03-08 15:13:05 -0500
commite8e83d2dbee2a568dfdd6ea5e58c227eabff0dea (patch)
tree767d9a745d5074323cd391850cb232981b83bdb5 /src/tables.c
parentc2940d142b0324a12b0d09cff446e697a91fc3b1 (diff)
change type of struct yytbl_writer.total_written to get rid of warnings
Diffstat (limited to 'src/tables.c')
-rw-r--r--src/tables.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tables.c b/src/tables.c
index 777760b..df4fb58 100644
--- a/src/tables.c
+++ b/src/tables.c
@@ -247,14 +247,14 @@ int yytbl_data_fwrite (struct yytbl_writer *wr, struct yytbl_data *td)
/* Now go back and update the th_hsize member */
if (fgetpos (wr->out, &pos) != 0
|| fsetpos (wr->out, &(wr->th_ssize_pos)) != 0
- || yytbl_write32 (wr, wr->total_written) < 0
+ || yytbl_write32 (wr, (flex_uint32_t) wr->total_written) < 0
|| fsetpos (wr->out, &pos)) {
flex_die (_("get|set|fwrite32 failed"));
return -1;
}
else
/* Don't count the int we just wrote. */
- wr->total_written -= sizeof (flex_int32_t);
+ wr->total_written -= (int) sizeof (flex_int32_t);
return bwritten;
}