diff options
Diffstat (limited to 'src/util.cff')
| -rw-r--r-- | src/util.cff | 6 |
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; } |