Made ptrCompare return at least 1 so it does not conflict when comparing with 0 or null.