aboutsummaryrefslogtreecommitdiffhomepage
path: root/lex.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-10-15 10:44:06 +0200
committerlemon <lsof@mailbox.org>2025-10-15 10:44:06 +0200
commit66ffc2ae07941e00406493020579a0b695b535ee (patch)
tree705422eed8562683fdaa15b32b0ba55f2c44c3a0 /lex.c
parente9896f1db183fefc0392273c2579c3481510f624 (diff)
implement long double (as double synonym). wchar_t placeholder
Diffstat (limited to 'lex.c')
-rw-r--r--lex.c3
1 files changed, 3 insertions, 0 deletions
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 */