Skip to content

Commit e012fd0

Browse files
nikomatsakisbrson
authored andcommitted
correct more i32 vs int mismatches
1 parent 602ae91 commit e012fd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/comp/middle/trans.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1475,7 +1475,7 @@ fn trans_res_drop(cx: @block_ctxt, rs: ValueRef, did: ast::def_id,
14751475
Call(cx, dtor_addr, args + [val_cast]);
14761476

14771477
cx = drop_ty(cx, val.val, inner_t_s);
1478-
Store(cx, C_int(ccx, 0), drop_flag.val);
1478+
Store(cx, C_i32(0i32), drop_flag.val);
14791479
Br(cx, next_cx.llbb);
14801480
ret next_cx;
14811481
}
@@ -5206,7 +5206,7 @@ fn trans_res_ctor(cx: @local_ctxt, sp: span, dtor: ast::_fn,
52065206
check type_is_tup_like(bcx, tup_t);
52075207
let flag = GEP_tup_like(bcx, tup_t, llretptr, [0, 0]);
52085208
bcx = flag.bcx;
5209-
Store(bcx, C_i32(1), flag.val);
5209+
Store(bcx, C_i32(1i32), flag.val);
52105210
build_return(bcx);
52115211
finish_fn(fcx, lltop);
52125212
}

0 commit comments

Comments
 (0)