lz4 icon indicating copy to clipboard operation
lz4 copied to clipboard

len should be unsigned

Open AZero13 opened this issue 9 months ago • 2 comments

len will never underflow, as it is already bounds-checked, and casting is potentially another instruction.

AZero13 avatar May 07 '24 22:05 AZero13

why ?

Cyan4973 avatar May 08 '24 01:05 Cyan4973

why ?

Because it will never underflow, and casting is potentially another instruction.

AZero13 avatar May 08 '24 01:05 AZero13