Closed yuppox closed 1 year ago
p[x]
is equivalent to *(p + x)
. So a negative value for x
is not supposed to be an error.
Anyway, the notation was changed to *(p + x)
in 63260875a1b66fd87d210d126406e88fde483706 which also makes the consistent with libsodium.
Thanks for the update and explanation!
I'm seeing 4 errors in core.h on Windows. All of them are:
Here is the first instance
The second instance is here:
The problems are
tail[-i]
and-is_barrier
. They are allsize_t
which is unsigned.Why are those negative? I especially don't understand
tail[-i]
. It's counting from 0 to some size. Why would you want that to be negative when accessing an array?