mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
bdf6dc7e23
commit
1e64ca1adf
2 changed files with 11 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue