diff options
| author | 2022-08-18 09:47:54 +0200 | |
|---|---|---|
| committer | 2022-08-18 09:47:54 +0200 | |
| commit | f0214ff61b5a94b9629db6f43d7a5b010bd4ffbc (patch) | |
| tree | c8517b4950bc3937e82ff49c757fb24a7364e3b0 /src/set.hff | |
| parent | 8c81c70b904a41b8a0d44dc418b7c39bf325c2a2 (diff) | |
fix bodyarg
Diffstat (limited to 'src/set.hff')
| -rw-r--r-- | src/set.hff | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/set.hff b/src/set.hff index 82c213f..6f472b3 100644 --- a/src/set.hff +++ b/src/set.hff @@ -25,7 +25,7 @@ struct Set<T, Traits> { if self.count == self.N / 2 { free(self.set); self.set = xcalloc(self.N *= 2, sizeof int); - vec_each(p, i, self.buf, + vec_each(p, i, self.buf) { let h = Traits:hash(p); let j = h & (self.N - 1); for ;; { @@ -35,7 +35,7 @@ struct Set<T, Traits> { } j = _nexthash(&h) & (self.N - 1); } - ) + } } let h u32 = Traits:hash(x); |