Fix ntoab.

Follow-up to b5b19304b59fefbed923b146ec8c8d495556fa76.

* lib/mes/ntoab.c (ntoab): Fix non-MESC case.
This commit is contained in:
Danny Milosavljevic 2019-07-01 20:04:26 +02:00 committed by Jan Nieuwenhuizen
parent b0466331a7
commit 08774a9c74
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -45,7 +45,7 @@ ntoab (long x, int base, int signed_p)
#if __MESC__
u = __mesabi_uldiv(u, (unsigned long) base, &i);
#else
i = i % base;
i = u % base;
u = u / base;
#endif
*p-- = i > 9 ? 'a' + i - 10 : '0' + i;