aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-06-23 18:18:07 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-06-23 18:18:07 +0200
commitbd8833bebbd9b6f34fab4d71dcf58ccea67cf09d (patch)
treea0adb1297a56320af358a414b7d9e3300805b54d
parente5e3724046655286bf04d21b6dbdd58f33375ad9 (diff)
Formatting
-rw-r--r--src/arena.c3
-rw-r--r--src/codegen.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/arena.c b/src/arena.c
index e7091fb..880befd 100644
--- a/src/arena.c
+++ b/src/arena.c
@@ -137,7 +137,8 @@ mkblk(size_t cap)
if (a == NULL)
err("malloc:");
a->cap = cap;
- a->data = mmap(NULL, cap, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);
+ a->data = mmap(NULL, cap, PROT_READ | PROT_WRITE,
+ MAP_PRIVATE | MAP_ANON, -1, 0);
if (a->data == MAP_FAILED)
err("mmap:");
a->free = a->data;
diff --git a/src/codegen.c b/src/codegen.c
index 1431693..3bb3155 100644
--- a/src/codegen.c
+++ b/src/codegen.c
@@ -135,8 +135,8 @@ codegenstmt(struct cgctx ctx, mpq_t *folds, type_t *types, ast_t ast,
}
LLVMValueRef v;
- i = codegentypedexpr(ctx, folds, types, ast, aux, toks, expr, types[i],
- &v);
+ i = codegentypedexpr(ctx, folds, types, ast, aux,
+ toks, expr, types[i], &v);
(void)LLVMBuildRet(ctx.bob, v);
return i;
}