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-02-22 16:45:32 +01:00 committed by Jan Nieuwenhuizen
parent 7eca5208b7
commit e6400e78d3
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 5 additions and 0 deletions

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);