From: Robert Pengelly Date: Fri, 13 Nov 2026 08:07:26 +0000 (+0000) Subject: Reset stale cast signedness before immediate comparisons X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=f8c8349f47aef613145ed78894993c1ed325c078;p=scc.git Reset stale cast signedness before immediate comparisons --- diff --git a/amd64.c b/amd64.c index f227d83..47b5476 100644 --- a/amd64.c +++ b/amd64.c @@ -35675,9 +35675,12 @@ static int emit_statement_ident_immediate_compare_jump_if_false_now (int label) get_token (); rhs_signedness = rhs_current_operand_signedness_for_warning_now (); + rhs_report_start = tok.report_start; rhs_report_caret = tok.report_caret; + rhs_last_explicit_integer_cast_signedness = -1; + if (rhs_current_operand_is_unsigned_now ()) { is_unsigned = 1; } diff --git a/i386.c b/i386.c index 5307dee..c7b4372 100644 --- a/i386.c +++ b/i386.c @@ -33458,9 +33458,12 @@ static int emit_statement_ident_immediate_compare_jump_if_false_now (int label) get_token (); rhs_signedness = rhs_current_operand_signedness_for_warning_now (); + rhs_report_start = tok.report_start; rhs_report_caret = tok.report_caret; + rhs_last_explicit_integer_cast_signedness = -1; + if (rhs_current_operand_is_unsigned_now ()) { is_unsigned = 1; }