Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions nolibc/vfprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ static const unsigned char states[]['z'-'A'+1] = {
union arg
{
uintmax_t i;
long double f;
/* double, not long double: avoids pulling libgcc soft-float (__extenddftf2,
__trunctfdf2) into freestanding links; %L is treated as double (fmt_fp
formats at double). */
double f;
void *p;
};

Expand Down Expand Up @@ -151,7 +154,7 @@ static void pop_arg(union arg *arg, int type, va_list *ap)
break; case UIPTR: arg->i = (uintptr_t)va_arg(*ap, void *);
#endif
break; case DBL: arg->f = va_arg(*ap, double);
break; case LDBL: arg->f = va_arg(*ap, long double);
break; case LDBL: arg->f = va_arg(*ap, double);
}
}

Expand Down