1
0
Fork 0
forked from len0rd/rockbox

more long policy

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6065 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jean-Philippe Bernardy 2005-02-25 18:50:16 +00:00
parent 5786b384ab
commit fc19445ba0
5 changed files with 17 additions and 17 deletions

View file

@ -43,7 +43,7 @@ static int format(
char *str;
char tmpbuf[12], pad;
int ch, width, val, sign;
long lval;
long lval, lsign;
unsigned int uval;
unsigned long ulval;
bool ok = true;
@ -116,7 +116,7 @@ static int format(
while (ulval);
break;
case 'd':
lval = sign = va_arg (ap, long);
lval = lsign = va_arg (ap, long);
if (lval < 0)
lval = -lval;
do
@ -125,7 +125,7 @@ static int format(
lval /= 10;
}
while (lval > 0);
if (sign < 0)
if (lsign < 0)
*--str = '-';
break;