We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88b2468 commit 71cbc92Copy full SHA for 71cbc92
crates/rustc_codegen_spirv/src/codegen_cx/constant.rs
@@ -54,7 +54,7 @@ impl<'tcx> CodegenCx<'tcx> {
54
55
fn constant_int_from_native_signed(&self, span: Span, val: impl Into<i128>) -> SpirvValue {
56
let size = Size::from_bytes(std::mem::size_of_val(&val));
57
- let ty = SpirvType::Integer(size.bits() as u32, false).def(span, self);
+ let ty = SpirvType::Integer(size.bits() as u32, true).def(span, self);
58
self.constant_int(ty, val.into() as u128)
59
}
60
0 commit comments