summaryrefslogtreecommitdiff
path: root/src/tables.c
diff options
context:
space:
mode:
authorrlar <rlar>2016-02-29 20:15:29 +0100
committerWill Estes <westes575@gmail.com>2016-03-01 06:05:21 -0500
commit22d123c1fe6f6298616ae80b7be7f3a52cedf068 (patch)
tree5236fed497524cb0df1ab05f5a18a5a5864df8fa /src/tables.c
parentd2c0374297b7dd687a89227f3e77ff3f244da94b (diff)
add (size_t) casts to malloc invocations to prevent warnings
Diffstat (limited to 'src/tables.c')
-rw-r--r--src/tables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tables.c b/src/tables.c
index ff89b4d..3d043c6 100644
--- a/src/tables.c
+++ b/src/tables.c
@@ -481,7 +481,7 @@ void yytbl_data_compress (struct yytbl_data *tbl)
}
total_len = yytbl_calc_total_len (tbl);
- newtbl.td_data = calloc (total_len, newsz);
+ newtbl.td_data = calloc ((size_t) total_len, newsz);
newtbl.td_flags =
TFLAGS_CLRDATA (newtbl.td_flags) | BYTES2TFLAG (newsz);