diff options
author | kartofen <mladenovnasko0@gmail.com> | 2025-07-06 21:18:28 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2025-07-06 21:18:28 +0300 |
commit | b4261ac4a79651bd8fd1bd03d38bbf49ee89b615 (patch) | |
tree | 3b86e7afe5d16899d691122c3271944dc41d324e /util-tables.c | |
parent | b65dd53885eabb8f39a3115039563edc08efb2b4 (diff) |
modular table building
Diffstat (limited to 'util-tables.c')
-rw-r--r-- | util-tables.c | 4 |
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])); |