Tweak return value to definitely be YES or NO rather than true/false

This commit is contained in:
Richard Frith-Macdonald 2018-03-30 10:45:57 +01:00
parent 437df42b87
commit efb4ec5f22

View file

@ -3030,7 +3030,7 @@ NSAssert(pos + 4 < _length, NSInvalidArgumentException);
}
val = (index == 0) ? UINTPTR_MAX : (uintptr_t)(void*)index;
// NSHashInsertIfAbsent() returns NULL on success
return NO == NSHashInsertIfAbsent(_stack, (void*)val);
return (NULL == NSHashInsertIfAbsent(_stack, (void*)val) ? YES : NO);
}
- (void)_popObject: (NSUInteger)index