1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

fix DEBUG decimal() of negative number

This commit is contained in:
John Reiser 2012-08-23 12:37:44 -07:00
parent ad1c0f578e
commit be96c28b77
3 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ decimal(int x, char *ptr, int n)
{
if (x < 0) {
x = -x;
*ptr = '-'; ++n;
*ptr[n++] = '-';
}
return unsimal(x, ptr, n);
}

View File

@ -123,7 +123,7 @@ decimal(int x, char *ptr, int n)
{
if (x < 0) {
x = -x;
*ptr = '-'; ++n;
*ptr[n++] = '-';
}
return unsimal(x, ptr, n);
}

View File

@ -62,7 +62,7 @@ decimal(int x, char *ptr, int n)
{
if (x < 0) {
x = -x;
*ptr = '-'; ++n;
*ptr[n++] = '-';
}
return unsimal(x, ptr, n);
}