diff --git a/libc/stdio/vfprintf.c b/libc/stdio/vfprintf.c index 96c46db7a..e1f4d0035 100644 --- a/libc/stdio/vfprintf.c +++ b/libc/stdio/vfprintf.c @@ -227,12 +227,12 @@ vfprintf(FILE *op, const char *fmt, va_list ap) p = buf + sizeof(buf) - 1; *p = '\0'; do { -#if 1 - c = radix; - v = __divmod(v, &c); /* remainder returned in c */ -#else +#if __WATCOMC__ c = v % radix; v = v / radix; +#else + c = radix; + v = __divmod(v, &c); /* remainder returned in c */ #endif if (c > 9) *--p = ((*fmt == 'X')? 'A': 'a') - 10 + c;