X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fbase.rs;h=556e01aa3a2198855888cef7f86603d203b0b324;hb=ccf07adbfb51cd1d98c3ab70488bb6a880ba63e2;hp=dfa5827e03ffd25325ee1cf270dfebf5f86a9058;hpb=4ecbee2f091cb22ebf191950cc15094a993605df;p=rust.git diff --git a/src/base.rs b/src/base.rs index dfa5827e03f..556e01aa3a2 100644 --- a/src/base.rs +++ b/src/base.rs @@ -482,6 +482,9 @@ fn trans_stmt<'a, 'tcx: 'a>( (ty::Uint(_), ty::RawPtr(..)) if from_ty.sty == fx.tcx.types.usize.sty => { lval.write_cvalue(fx, operand.unchecked_cast_to(dest_layout)); } + (ty::Int(_), ty::RawPtr(..)) if from_ty.sty == fx.tcx.types.isize.sty => { + lval.write_cvalue(fx, operand.unchecked_cast_to(dest_layout)); + } (ty::Char, ty::Uint(_)) | (ty::Uint(_), ty::Char) | (ty::Uint(_), ty::Int(_))