Skip to content

Commit 581b6ea

Browse files
committed
Misc changes
1 parent 2facd8e commit 581b6ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ pub fn trans_get_discriminant<'a, 'tcx: 'a>(
634634
let discr_val = layout
635635
.ty
636636
.ty_adt_def()
637-
.map_or(index.as_u32() as u128, |def| {
637+
.map_or(u128::from(index.as_u32()), |def| {
638638
def.discriminant_for_variant(fx.tcx, *index).val
639639
});
640640
return CValue::const_val(fx, dest_layout.ty, discr_val);

src/codegen_i128.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ pub fn maybe_codegen<'a, 'tcx>(
8686
}
8787
_ => {
8888
// if msb_eq {
89-
// lhs_cc
89+
// lsb_cc
9090
// } else {
9191
// msb_cc
9292
// }

0 commit comments

Comments
 (0)