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 --- c.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'c.c') 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] = { -- cgit v1.2.3