mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Make sure conversion of signed ints before shift applies to the shifted number
This commit is contained in:
parent
a08b45263b
commit
29991654db
1 changed files with 1 additions and 1 deletions
|
@ -1686,7 +1686,7 @@ impl<'a> LowLevelCall<'a> {
|
|||
let bit_width = 8 * self
|
||||
.ret_layout
|
||||
.stack_size(backend.env.layout_interner, TARGET_INFO);
|
||||
if bit_width < 32 && symbol_is_signed_int(backend, bits) {
|
||||
if bit_width < 32 && symbol_is_signed_int(backend, num) {
|
||||
let mask = (1 << bit_width) - 1;
|
||||
|
||||
backend
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue