From: Robert Pengelly Date: Sat, 14 Nov 2026 05:13:46 +0000 (+0000) Subject: Preserve unsignedness of parenthesized integer constants X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=5582f5b1656242c71e267f62b13a8ab7f3bdfad4;p=scc.git Preserve unsignedness of parenthesized integer constants --- diff --git a/i386.c b/i386.c index c7b4372..29f9da2 100644 --- a/i386.c +++ b/i386.c @@ -18862,10 +18862,14 @@ static void emit_load_assignment_rhs_to_reg (const char *reg) { if (tok.kind != TOK_LPAREN && current_integer_expr_is_foldable_now ()) { + int is_unsigned = rhs_current_operand_is_unsigned_now (); int64_s v = const64_from_current_foldable_expr (); + expect (TOK_RPAREN, ")"); emit_load_const32_to_reg_now (reg, v); + rhs_last_scalar_is_unsigned = is_unsigned; + return; }