Avoid typemax
checks for non-standard integers
#32631
Merged
typemax
checks for non-standard integers
#32631