folly icon indicating copy to clipboard operation
folly copied to clipboard

correct the wrong comment for encodeZigZag

Open faithk7 opened this issue 1 year ago • 0 comments

The comment for encodeZigZag(x) is wrong.

Should be encodeZigZag(x) == -2*x - 1, as

encodeZigZag(-1) = 1

and

encodeZigZag(-2) = 3

Closes #2046

faithk7 avatar Sep 21 '23 20:09 faithk7