More leaks fixed

This commit is contained in:
rfm 2024-11-16 14:07:33 +00:00
parent aedd13dc94
commit c7f0c27dd7
8 changed files with 47 additions and 40 deletions

View file

@ -132,9 +132,9 @@ int main()
PASS(200 == [val1 unsignedShortValue],
"NSDecimalNumber unsignedShortValue works")
val1 = [[NSNumber alloc] initWithLongLong: LLONG_MIN];
val2 = [[NSNumber alloc] initWithUnsignedLongLong:
(unsigned long long)LLONG_MAX + 1];
val1 = AUTORELEASE([[NSNumber alloc] initWithLongLong: LLONG_MIN]);
val2 = AUTORELEASE([[NSNumber alloc] initWithUnsignedLongLong:
(unsigned long long)LLONG_MAX + 1]);
PASS([val1 compare: val2] == NSOrderedAscending,
"comparison of min signed with max unsigned works")