Implement -scanInteger: by either calling -scanInt: or -scanLongLong: based on the pointer size.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37612 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Niels Grewe 2014-01-16 16:13:20 +00:00
parent bdf6dc7e23
commit 1e64ca1adf
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2014-01-16 Niels Grewe <niels.grewe@halbordnung.de>
* Source/NSScanner.m: Implement -scanInteger: by conditionally
calling -scanInt: or -scanLongLong: based on the pointer size
detected at configure time.
2014-01-16 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSKeyValueObserving.m:

View file

@ -1146,7 +1146,11 @@ typedef GSString *ivars;
}
- (BOOL) scanInteger: (NSInteger *)value
{
return NO; // FIXME
#if GS_SIZEOF_VOIDP < 8
return [self scanInt: value];
#else
return [self scanLongLong: value];
#endif
}
@end