projects
/
scc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8c8349
)
Preserve unsignedness of parenthesized integer constants
author
Robert Pengelly
<robertapengelly@hotmail.com>
Sat, 14 Nov 2026 05:13:46 +0000
(
05:13
+0000)
committer
Robert Pengelly
<robertapengelly@hotmail.com>
Sat, 14 Nov 2026 05:13:46 +0000
(
05:13
+0000)
i386.c
patch
|
blob
|
history
diff --git
a/i386.c
b/i386.c
index c7b4372b3275b36feec81053e261d140b61b324e..29f9da27a075c3843bef7966a4611ca24aaeb0b2 100644
(file)
--- 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;
}