Skip to content

Commit 4b83c05

Browse files
committed
fix: Sum value regression
1 parent 33b043f commit 4b83c05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/value.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -358,10 +358,10 @@ impl Value {
358358
let total_width = cmp::max(inner.ty.bit_width(), right.bit_width());
359359

360360
let (concat, concat_offset) = product(
361-
Some((&inner.inner, inner.bit_offset)),
362-
inner.ty.bit_width(),
363361
None,
364362
total_width - inner.ty.bit_width(),
363+
Some((&inner.inner, inner.bit_offset)),
364+
inner.ty.bit_width(),
365365
);
366366
let (new_inner, new_bit_offset) = right_shift_1(&concat, concat_offset, false);
367367
Self {

0 commit comments

Comments
 (0)