ntoab: Use __mesabi_uldiv only on __MESC__.

* lib/mes/ntoab.c (ntoab): Use __mesabi_uldiv only on __MESC__.
This commit is contained in:
Danny Milosavljevic 2019-06-14 17:45:32 +02:00 committed by Jan Nieuwenhuizen
parent b8dace81c6
commit 9b0efad295
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

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