Converting from valid pointer to void to intptr_t and uintptr_t, and then converting back to pointer to void will result in a pointer which compares equal to the original pointer. Using another integer type as intermediate would result in an implementation-defined behavior. Especially using unsigned long for the purpose is problematic for LLP64 model like Windows. Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/726>macos/master
parent
1c0ec811ee
commit
c0871ad319
Loading…
Reference in new issue