aboutsummaryrefslogtreecommitdiff
path: root/util-tables.c
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2025-07-06 21:18:28 +0300
committerkartofen <mladenovnasko0@gmail.com>2025-07-06 21:18:28 +0300
commitb4261ac4a79651bd8fd1bd03d38bbf49ee89b615 (patch)
tree3b86e7afe5d16899d691122c3271944dc41d324e /util-tables.c
parentb65dd53885eabb8f39a3115039563edc08efb2b4 (diff)
modular table building
Diffstat (limited to 'util-tables.c')
-rw-r--r--util-tables.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-tables.c b/util-tables.c
index 507153d..cfebf68 100644
--- a/util-tables.c
+++ b/util-tables.c
@@ -21,8 +21,8 @@ int **first;
void util_tables_fill()
{
- follow = calloc(total_symbols, sizeof(*follow));
- first = calloc(total_symbols, sizeof(*follow));
+ follow = xcalloc(total_symbols, sizeof(*follow));
+ first = xcalloc(total_symbols, sizeof(*follow));
for(size_t i = 0; i < total_symbols; i++) {
follow[i] = xcalloc(total_symbols, sizeof(*follow[i]));
first[i] = xcalloc(total_symbols, sizeof(*follow[i]));