aboutsummaryrefslogtreecommitdiff
path: root/src/util.cff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-18 09:47:54 +0200
committerlemon <lsof@mailbox.org>2022-08-18 09:47:54 +0200
commitf0214ff61b5a94b9629db6f43d7a5b010bd4ffbc (patch)
treec8517b4950bc3937e82ff49c757fb24a7364e3b0 /src/util.cff
parent8c81c70b904a41b8a0d44dc418b7c39bf325c2a2 (diff)
fix bodyarg
Diffstat (limited to 'src/util.cff')
-rw-r--r--src/util.cff6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.cff b/src/util.cff
index d3e40bb..30175a3 100644
--- a/src/util.cff
+++ b/src/util.cff
@@ -29,10 +29,10 @@ extern fn xstrdup(str *const u8) *u8 {
}
extern fn fnv1a(h u32, d [#]const u8) u32 {
- foreach(i, x, d,
+ foreach(i, x, d) {
h ^= x;
h *= 0x01000193;
- )
+ }
return h;
}
@@ -70,7 +70,7 @@ extern fn addfilepath(s *const u8) int {
extern fn fileid2path(id int) *const u8 {
assert(id >= 0 and id < filepaths.#len, "fileid");
let s = filepaths[id];
- assert(s != #null, "fileid");
+ // assert(s != #null, "fileid %d", id);
return s;
}