mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[spv-in] fix integer constants parsing (#756)
This commit is contained in:
@@ -2873,7 +2873,7 @@ impl<I: Iterator<Item = u32>> Parser<I> {
|
||||
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),
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user