Skip to content
Permalink
Browse files

Apply suggestions from code review

Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
  • Loading branch information...
RalfJung and Centril committed Jun 9, 2019
1 parent 8316cec commit de7bcca6e4a5e2f999b6c4d1f06dac6074ad3e50
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/librustc/mir/interpret/value.rs
@@ -328,13 +328,13 @@ impl<'tcx, Tag> Scalar<Tag> {

#[inline]
pub fn from_f32(f: Single) -> Self {
// We trust apfloat to give us properly truncated data
// We trust apfloat to give us properly truncated data.
Scalar::Raw { data: f.to_bits(), size: 4 }
}

#[inline]
pub fn from_f64(f: Double) -> Self {
// We trust apfloat to give us properly truncated data
// We trust apfloat to give us properly truncated data.
Scalar::Raw { data: f.to_bits(), size: 8 }
}

0 comments on commit de7bcca

Please sign in to comment.
You can’t perform that action at this time.