mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
fix %e format ... problem spotted by Doug Simons
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28257 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a17d3c29b0
commit
e8db6ca052
1 changed files with 4 additions and 5 deletions
|
@ -1969,16 +1969,15 @@ static void Grow(DescriptionInfo *info, unsigned size)
|
|||
v = info->dom;
|
||||
Grow(info, 2);
|
||||
v = v % 100;
|
||||
if (v%10 == '0')
|
||||
if (v < 10)
|
||||
{
|
||||
info->t[info->offset+1] = ' ';
|
||||
info->t[info->offset] = ' ';
|
||||
}
|
||||
else
|
||||
{
|
||||
info->t[info->offset+1] = (v%10) + '0';
|
||||
info->t[info->offset] = (v/10) + '0';
|
||||
}
|
||||
v /= 10;
|
||||
info->t[info->offset+0] = (v%10) + '0';
|
||||
info->t[info->offset+1] = (v%10) + '0';
|
||||
info->offset += 2;
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue