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:
thebeing 2014-01-16 16:13:20 +00:00
parent 5470bb0efa
commit 69c760f949
2 changed files with 11 additions and 1 deletions

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