Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
Co-authored-by: Rémy Rakic <remy.rakic+github@gmail.com>
  • Loading branch information
RalfJung and lqd committed Mar 4, 2024
1 parent 86e88fc commit 681dc38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_const_eval/src/interpret/cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
FloatTy::F128 => unimplemented!("f16_f128"),
}
}
// unsiged int -> float
// unsigned int -> float
Float(fty) => match fty {
FloatTy::F16 => unimplemented!("f16_f128"),
FloatTy::F32 => Scalar::from_f32(Single::from_u128(v).value),
Expand Down

0 comments on commit 681dc38

Please sign in to comment.