Repository navigation
Commit e35d4c0
Core: Pass the result sign to the operator in augmented assignment
The binary-operation path chooses sdiv/udiv, srem/urem and ashr/lshr from
the promoted type; the augmented-assignment path computed the same
promoted type and then called apply_binop without it, so u32 >>= 4 was
an ashr and u32 //= 3 an sdiv. Same call as the binop path now.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>1 parent 9cd8e10 commit e35d4c0
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
287 | 289 | | |
288 | 290 | | |
289 | 291 | | |
| |||
0 commit comments