uintptr_t is unsigned. It looks like the author wants a signed integer here and that is a significant difference.
I don't know which commit you're referring to, but conversion from a signed integer of the same size to uintptr_t is well-defined by The Standard, see 6.3.1.3.