compiler/libec: Fixed warnings calling OnCompare from uintptr type