Skip to content

Commit

Permalink
Update for upstream changes: rust-lang/rust#43554
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Aug 6, 2017
1 parent 4a8ff00 commit ae20405
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eval_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
let primval = match *const_val {
Integral(const_int) => PrimVal::Bytes(const_int.to_u128_unchecked()),

Float(ConstFloat::F32(f)) => PrimVal::from_f32(f),
Float(ConstFloat::F64(f)) => PrimVal::from_f64(f),
Float(ConstFloat { ty: ast::FloatTy::F32, bits }) => PrimVal::Bytes(bits),
Float(ConstFloat { ty: ast::FloatTy::F64, bits }) => PrimVal::Bytes(bits),

Bool(b) => PrimVal::from_bool(b),
Char(c) => PrimVal::from_char(c),
Expand Down

0 comments on commit ae20405

Please sign in to comment.