aboutsummaryrefslogtreecommitdiffhomepage
path: root/lex.c
diff options
context:
space:
mode:
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 */