mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Update stringForObjectValue:
This commit is contained in:
parent
9e96cbd1c8
commit
ba3d60c5ab
2 changed files with 13 additions and 6 deletions
|
@ -69,7 +69,13 @@ GS_PRIVATE_INTERNAL(NSByteCountFormatter)
|
|||
|
||||
- (NSString *)stringForObjectValue: (id)obj
|
||||
{
|
||||
long long byteCount = [obj longLongValue];
|
||||
long long byteCount = 0;
|
||||
|
||||
if([obj respondsToSelector: @selector(longLongValue)])
|
||||
{
|
||||
byteCount = [obj longLongValue];
|
||||
}
|
||||
|
||||
return [self stringFromByteCount: byteCount];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue