minor code cleanup, use uint64 for wavefront values

This commit is contained in:
2025-05-07 21:20:13 +00:00
parent 2351faf2d7
commit 63a375995c
5 changed files with 62 additions and 53 deletions

View File

@@ -19,7 +19,7 @@ func (a *PositiveSlice[T]) Get(idx int) T {
}
func (a *PositiveSlice[T]) Set(idx int, value T) {
if idx < 0 || idx >= len(a.valid) { // idx is outside the slice
if idx >= len(a.valid) { // idx is outside the slice
// expand data array to 2*idx
newData := make([]T, 2*idx+1)
copy(newData, a.data)