Fix ntoab.
Follow-up to b5b19304b59fefbed923b146ec8c8d495556fa76. * lib/mes/ntoab.c (ntoab): Fix non-MESC case.
This commit is contained in:
parent
b0466331a7
commit
08774a9c74
|
@ -45,7 +45,7 @@ ntoab (long x, int base, int signed_p)
|
||||||
#if __MESC__
|
#if __MESC__
|
||||||
u = __mesabi_uldiv(u, (unsigned long) base, &i);
|
u = __mesabi_uldiv(u, (unsigned long) base, &i);
|
||||||
#else
|
#else
|
||||||
i = i % base;
|
i = u % base;
|
||||||
u = u / base;
|
u = u / base;
|
||||||
#endif
|
#endif
|
||||||
*p-- = i > 9 ? 'a' + i - 10 : '0' + i;
|
*p-- = i > 9 ? 'a' + i - 10 : '0' + i;
|
||||||
|
|
Loading…
Reference in a new issue