On a system where -1 points to an object, I don't think comparing that to null(0) would be UB, because null is one past an object.