News for hackers. Stuff that matters.
Re:You Can't Always Hash Pointers in C by yoklov on Wednesday June 01, 2016 @11:39AM (#11815263)
I thought it was UB to use < on pointers outside of the same block of memory. e.g. your function is fine if the answer is true, but UB if the answer is false.

I could be misremembering though, but I do know I'd always cast to uintptr_t for this.

There are no comments on this comment yet.