aboutsummaryrefslogtreecommitdiffhomepage
path: root/c.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 /c.c
parente9896f1db183fefc0392273c2579c3481510f624 (diff)
implement long double (as double synonym). wchar_t placeholder
Diffstat (limited to 'c.c')
-rw-r--r--c.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/c.c b/c.c
index 6b29021..42e2c35 100644
--- a/c.c
+++ b/c.c
@@ -2047,9 +2047,7 @@ End:
else if (arith == KDOUBLE)
t = TYDOUBLE;
else if (arith == (KLONG | KDOUBLE)) {
- /* t = TYLDOUBLE; */
- warn(&span, "`long double' is unsupported");
- t = TYDOUBLE;
+ t = TYLDOUBLE;
} else if (arith == KBOOL)
t = TYBOOL;
else if (arith == KCHAR)
@@ -2697,7 +2695,7 @@ narrow(struct function *fn, enum irclass to, enum typetag tt, union ref ref, uin
if (targ_primsizes[tt] < cls2siz[to]) {
ins.cls = to;
if (isfltt(tt)) {
- assert(to == KF4 && tt == TYDOUBLE);
+ assert(to == KF4 && tt >= TYDOUBLE);
ins.op = Ocvtf8f4;
} else {
static const enum op ext[5][2] = {