summaryrefslogtreecommitdiff
path: root/src/tables.c
diff options
context:
space:
mode:
authorrlar <rlar>2016-02-29 19:41:04 +0100
committerWill Estes <westes575@gmail.com>2016-02-29 20:16:03 -0500
commitd2c0374297b7dd687a89227f3e77ff3f244da94b (patch)
tree00f90edde731eb4fcee9212fee9220d848a739ba /src/tables.c
parent0f276adbb23542471bc30a2479e5fcdd5f475d72 (diff)
add (int) casts to some strlen() invocations to prevent 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 ae2ad9c..ff89b4d 100644
--- a/src/tables.c
+++ b/src/tables.c
@@ -158,12 +158,12 @@ int yytbl_hdr_fwrite (struct yytbl_writer *wr, const struct yytbl_hdr *th)
flex_die (_("th_ssize|th_flags write failed"));
bwritten += 6;
- sz = strlen (th->th_version) + 1;
+ sz = (int) strlen (th->th_version) + 1;
if ((rv = yytbl_writen (wr, th->th_version, sz)) != sz)
flex_die (_("th_version writen failed"));
bwritten += rv;
- sz = strlen (th->th_name) + 1;
+ sz = (int) strlen (th->th_name) + 1;
if ((rv = yytbl_writen (wr, th->th_name, sz)) != sz)
flex_die (_("th_name writen failed"));
bwritten += rv;