From b4261ac4a79651bd8fd1bd03d38bbf49ee89b615 Mon Sep 17 00:00:00 2001 From: kartofen Date: Sun, 6 Jul 2025 21:18:28 +0300 Subject: modular table building --- util-tables.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util-tables.c') 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])); -- cgit v1.2.3