From 66ffc2ae07941e00406493020579a0b695b535ee Mon Sep 17 00:00:00 2001 From: lemon Date: Wed, 15 Oct 2025 10:44:06 +0200 Subject: implement long double (as double synonym). wchar_t placeholder --- lex.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lex.c') diff --git a/lex.c b/lex.c index f99b8d3..2daa0bc 100644 --- a/lex.c +++ b/lex.c @@ -178,6 +178,9 @@ parsenumlit(uvlong *outi, double *outf, const struct token *tk, bool ispp) } else if ((suffix[0]|0x20) == 'f' && !suffix[1]) { if (outf) *outf = f; return TYFLOAT; + } else if ((suffix[0]|0x20) == 'l' && !suffix[1]) { + if (outf) *outf = f; + return TYLDOUBLE; } return 0; } else { /* int literal */ -- cgit v1.2.3