summaryrefslogtreecommitdiff
path: root/src/tables_shared.c
diff options
context:
space:
mode:
authorrlar <rlar>2016-02-28 21:12:45 +0100
committerWill Estes <westes575@gmail.com>2016-03-08 15:30:35 -0500
commit9160ceb67ff5317753ff71c623b037126862a32f (patch)
tree110f435ee61ebec1d608b78c3da9ea5cb8f40aa3 /src/tables_shared.c
parent00bc43fa045008aa306ef07d4f5d018d91f233ed (diff)
cast to get rid of warnings
Diffstat (limited to 'src/tables_shared.c')
-rw-r--r--src/tables_shared.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tables_shared.c b/src/tables_shared.c
index 123626c..fca0438 100644
--- a/src/tables_shared.c
+++ b/src/tables_shared.c
@@ -57,7 +57,7 @@ dnl
*/
yyskel_static flex_int32_t yytbl_calc_total_len (const struct yytbl_data *tbl)
{
- flex_int32_t n;
+ flex_uint32_t n;
/* total number of ints */
n = tbl->td_lolen;
@@ -66,5 +66,5 @@ yyskel_static flex_int32_t yytbl_calc_total_len (const struct yytbl_data *tbl)
if (tbl->td_id == YYTD_ID_TRANSITION)
n *= 2;
- return n;
+ return (flex_int32_t) n;
}