diff --git a/core/slice/slice.odin b/core/slice/slice.odin index 75105a1c4..fdacb842f 100644 --- a/core/slice/slice.odin +++ b/core/slice/slice.odin @@ -281,7 +281,7 @@ reduce :: proc(s: $S/[]$U, initializer: $V, f: proc(V, U) -> V) -> V { } filter :: proc(s: $S/[]$U, f: proc(U) -> bool, allocator := context.allocator) -> S { - r := make([dynamic]S, 0, 0, allocator); + r := make([dynamic]U, 0, 0, allocator); for v in s { if f(v) { append(&r, v);