diff options
| author | 2025-10-15 10:44:06 +0200 | |
|---|---|---|
| committer | 2025-10-15 10:44:06 +0200 | |
| commit | 66ffc2ae07941e00406493020579a0b695b535ee (patch) | |
| tree | 705422eed8562683fdaa15b32b0ba55f2c44c3a0 /lex.c | |
| parent | e9896f1db183fefc0392273c2579c3481510f624 (diff) | |
implement long double (as double synonym). wchar_t placeholder
Diffstat (limited to 'lex.c')
| -rw-r--r-- | lex.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 */ |