ir: Fix erroneous error message for ptr casts

Don't blindly throw an error if two integer types are checked for
compatibility.

Bug reported in #4430
6c05f0949aLemonBoy committed on 2/11/2020, 4:03:11 PMparentb81c5be
2 files changedLine totals unavailable