aboutsummaryrefslogtreecommitdiff
path: root/util-tables.c
diff options
context:
space:
mode:
authorkartofen <kartofen.mail.0@protonmail.com>2025-07-06 21:18:28 +0300
committerkartofen <kartofen.mail.0@protonmail.com>2025-07-06 21:18:28 +0300
commit653d4b248e18f71eebea57cb39895fdb68f5c885 (patch)
tree3b86e7afe5d16899d691122c3271944dc41d324e /util-tables.c
parente37eccfabbc5c626791e9698cc6c5fb1ec335625 (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]));