We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ecbee2 commit ccf07adCopy full SHA for ccf07ad
src/base.rs
@@ -482,6 +482,9 @@ fn trans_stmt<'a, 'tcx: 'a>(
482
(ty::Uint(_), ty::RawPtr(..)) if from_ty.sty == fx.tcx.types.usize.sty => {
483
lval.write_cvalue(fx, operand.unchecked_cast_to(dest_layout));
484
}
485
+ (ty::Int(_), ty::RawPtr(..)) if from_ty.sty == fx.tcx.types.isize.sty => {
486
+ lval.write_cvalue(fx, operand.unchecked_cast_to(dest_layout));
487
+ }
488
(ty::Char, ty::Uint(_))
489
| (ty::Uint(_), ty::Char)
490
| (ty::Uint(_), ty::Int(_))
0 commit comments