aboutsummaryrefslogtreecommitdiff
path: root/src/util.cff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-14 09:25:16 +0200
committerlemon <lsof@mailbox.org>2022-08-14 09:25:16 +0200
commitc129f77ad724aa940b53a125de0e1e4de0ca7240 (patch)
tree57ad369bcfe02d0fb8a311c659e45cf2ae5df075 /src/util.cff
parent66ed623e65ab9350f08061fe7cf12b989c84f65c (diff)
fix arena
Diffstat (limited to 'src/util.cff')
-rw-r--r--src/util.cff2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cff b/src/util.cff
index 926b1e4..18305b2 100644
--- a/src/util.cff
+++ b/src/util.cff
@@ -8,7 +8,7 @@ extern fn xmalloc(n usize) *void {
}
extern fn xcalloc(n usize, m usize) *void {
- let p = calloc(n, n);
+ let p = calloc(n, m);
assert(p != #null, "calloc");
return p;
}