mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-11 16:50:42 +00:00
Fix NSJSONSerialization test on Windows.
"small" is defined as a macro in windows.h.
This commit is contained in:
parent
f492e50308
commit
2212e08863
1 changed files with 2 additions and 2 deletions
|
@ -332,7 +332,7 @@ static NSString *percentQuoted(NSString *s)
|
||||||
- (void)longLongOverflow
|
- (void)longLongOverflow
|
||||||
{
|
{
|
||||||
NSNumber *big = [NSNumber numberWithUnsignedLongLong: 0xffffffffffffffff];
|
NSNumber *big = [NSNumber numberWithUnsignedLongLong: 0xffffffffffffffff];
|
||||||
NSNumber *small = [NSNumber numberWithLongLong: 0xffffffffffffffff];
|
NSNumber *sml = [NSNumber numberWithLongLong: 0xffffffffffffffff];
|
||||||
|
|
||||||
NSData *data = [NSJSONSerialization dataWithJSONObject: big
|
NSData *data = [NSJSONSerialization dataWithJSONObject: big
|
||||||
options: 0
|
options: 0
|
||||||
|
@ -342,7 +342,7 @@ static NSString *percentQuoted(NSString *s)
|
||||||
NSAssert([string isEqualToString:@"18446744073709551615"], @"unsigned long long");
|
NSAssert([string isEqualToString:@"18446744073709551615"], @"unsigned long long");
|
||||||
[string release];
|
[string release];
|
||||||
|
|
||||||
data = [NSJSONSerialization dataWithJSONObject: small
|
data = [NSJSONSerialization dataWithJSONObject: sml
|
||||||
options: 0
|
options: 0
|
||||||
error: NULL];
|
error: NULL];
|
||||||
string = [[NSString alloc] initWithData: data
|
string = [[NSString alloc] initWithData: data
|
||||||
|
|
Loading…
Reference in a new issue