On GCC , as far as I know, pointers will always cast to long and back ok. I'd expect the same from clang.
No, that's not a portable behaviour but I can see that it's valid if you're targeting Linux.
uintptr_t is more polite, though.
No, that's not a portable behaviour but I can see that it's valid if you're targeting Linux.
uintptr_t is more polite, though.
No comments yet.