mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
minor fix for output format
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34853 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
466d55bd8d
commit
b2900f17b1
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2012-03-01 Jens Alfke <jens@mooseyard.com>
|
||||
|
||||
* Source/NSJSONSerialization.m:
|
||||
Use %g for numeric output format.
|
||||
|
||||
2012-03-01 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/GSRunLoopWatcher.h:
|
||||
|
|
|
@ -829,7 +829,7 @@ writeObject(id obj, NSMutableString *output, NSInteger tabs)
|
|||
}
|
||||
else
|
||||
{
|
||||
[output appendFormat: @"%f", [obj doubleValue]];
|
||||
[output appendFormat: @"%g", [obj doubleValue]];
|
||||
}
|
||||
}
|
||||
else if ([obj isKindOfClass: NSNullClass])
|
||||
|
|
Loading…
Reference in a new issue