From f0214ff61b5a94b9629db6f43d7a5b010bd4ffbc Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 18 Aug 2022 09:47:54 +0200 Subject: fix bodyarg --- src/util.cff | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/util.cff') 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; } -- cgit v1.2.3