Skip to content

Commit

Permalink
Fix Watcom build
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaerr committed Sep 14, 2024
1 parent 56aba07 commit 4aa351c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libc/stdio/vfprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4aa351c

Please sign in to comment.