diff --git a/src/front/spv/mod.rs b/src/front/spv/mod.rs index 9011e5f19f..44cfbb1b0d 100644 --- a/src/front/spv/mod.rs +++ b/src/front/spv/mod.rs @@ -2873,7 +2873,7 @@ impl> Parser { crate::ConstantInner::Scalar { width, value: crate::ScalarValue::Sint( - ((u64::from(high) << 32) | u64::from(low)) as i64, + (i64::from(high as i32) << 32) | ((i64::from(low as i32) << 32) >> 32), ), } }