From: Robert Pengelly Date: Thu, 17 Sep 2026 13:08:48 +0000 (+0100) Subject: Fix AMD64 postfix pointer assignment width X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=79cf4b6f9f1d5a65afe4f470a07200359712e17c;p=scc.git Fix AMD64 postfix pointer assignment width --- diff --git a/amd64.c b/amd64.c index da9058e..f237a7c 100644 --- a/amd64.c +++ b/amd64.c @@ -38832,7 +38832,7 @@ static int parse_postfix_assignment_statement_now (void) { } assign_op = tok.kind; - lvalue_size = index_step_size (postfix_copy_lvalue_size); + lvalue_size = postfix_member_pointer_depth > 0 ? (DATA_PTR & 0x1f) : index_step_size (postfix_copy_lvalue_size); if (lvalue_size <= 0) { lvalue_size = DATA_INT & 0x1f;