Fix bug from cleaning out floating point stuff
This commit is contained in:
parent
aef6937a1c
commit
bed7092e0a
2
printf.c
2
printf.c
|
@ -196,6 +196,7 @@ static int getint(char **s) {
|
||||||
static int printf_core(FILE *f, const char *fmt, va_list *ap, union arg *nl_arg, int *nl_type)
|
static int printf_core(FILE *f, const char *fmt, va_list *ap, union arg *nl_arg, int *nl_type)
|
||||||
{
|
{
|
||||||
char *a, *z, *s=(char *)fmt;
|
char *a, *z, *s=(char *)fmt;
|
||||||
|
char buf[32];
|
||||||
unsigned l10n=0, fl;
|
unsigned l10n=0, fl;
|
||||||
int w, p, xp;
|
int w, p, xp;
|
||||||
union arg arg;
|
union arg arg;
|
||||||
|
@ -291,6 +292,7 @@ static int printf_core(FILE *f, const char *fmt, va_list *ap, union arg *nl_arg,
|
||||||
|
|
||||||
if (!f) continue;
|
if (!f) continue;
|
||||||
|
|
||||||
|
z = buf + sizeof(buf);
|
||||||
prefix = "-+ 0X0x";
|
prefix = "-+ 0X0x";
|
||||||
pl = 0;
|
pl = 0;
|
||||||
t = s[-1];
|
t = s[-1];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user