Fix a format string

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36689 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Sebastian Reitenbach 2013-05-31 11:44:12 +00:00
parent 96f2f7b252
commit 01a919e50e
2 changed files with 3 additions and 1 deletions

View file

@ -11,6 +11,8 @@
* GSWeb/GSWMultiKeyDictionary.m
Explicitly create a NSMutableDicitonary, see bug
39088
* GSWeb/GSWProcFS.m
fix a format string
2013-05-30: Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
* GSWeb/GSWElement.h

View file

@ -41,7 +41,7 @@ RCS_ID("$Id$")
NSString* formattedByteSizeValue(unsigned int value)
{
if (value<1024)
return [NSString stringWithFormat:@"%l b",value];
return [NSString stringWithFormat:@"%u b",value];
else if (value<1024L*1024L)
return [NSString stringWithFormat:@"%.3f Kb",
(((double)value)/1024)];