Closed Alexhuszagh closed 3 years ago
Another fix would be to use wrapping_add, which has worse codegen but can guarantee it is not UB:
wrapping_add
https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_add
Another fix would be to use
wrapping_add
, which has worse codegen but can guarantee it is not UB:https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_add