klauspost / reedsolomon

Reed-Solomon Erasure Coding in Go
MIT License
1.87k stars 246 forks source link

Slice len is always non-negative #261

Closed cristaloleg closed 10 months ago

cristaloleg commented 10 months ago

Mostly a stylistic change but also might improve assembly. However, changed lines are not hot. WDYT ?

klauspost commented 10 months ago

@cristaloleg I don't really see this making any difference, since it is just swapping one instruction for another similar one. But I don't mind it as a cleanup thing.