Fix invalid ptrtoint
on non-integral pointers
#23617
Merged
ptrtoint
on non-integral pointers
#23617