From 5582f5b1656242c71e267f62b13a8ab7f3bdfad4 Mon Sep 17 00:00:00 2001 From: Robert Pengelly Date: Sat, 14 Nov 2026 05:13:46 +0000 Subject: [PATCH] Preserve unsignedness of parenthesized integer constants --- i386.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.34.1