Fix strtol

This commit is contained in:
Justine Tunney 2020-12-29 21:39:43 -08:00
parent 1df136323b
commit 5eddadafbd
17 changed files with 83 additions and 105 deletions

View file

@ -20,7 +20,7 @@
#include "libc/stdio/internal.h"
#include "libc/stdio/stdio.h"
static noinline int __fputcg(int c, FILE *f) {
static noinline int __fputc(int c, FILE *f) {
if (f->beg < f->size) {
f->buf[f->beg++] = c;
if (f->beg == f->size || f->bufmode == _IONBF ||
@ -47,6 +47,6 @@ noinstrument int fputc(int c, FILE *f) {
f->buf[f->beg++] = c;
return c & 0xff;
} else {
return __fputcg(c, f);
return __fputc(c, f);
}
}