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:
Richard Frith-MacDonald 2012-03-01 09:30:13 +00:00
parent 466d55bd8d
commit b2900f17b1
2 changed files with 6 additions and 1 deletions

View file

@ -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:

View file

@ -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])