Commit Graph
2 Commits
Author SHA1 Message Date
bbodi c0e78fc172 Bounds check constant slices of [dynamic; N]T
Slicing a `[dynamic; N]T` skipped the bounds check when both indices
were constant, as is done for fixed arrays. But its length is only
known at runtime, so `a[0:3]` with a length of 2 silently returned
stale elements. Always check against the length, as for `[dynamic]T`.
2026-10-08 15:51:24 +02:00
gingerBill 0e6ea3884d General improves 2026-03-14 16:26:42 +00:00