Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
  • Loading branch information
RalfJung and Centril committed Jun 9, 2019
1 parent 8316cec commit de7bcca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc/mir/interpret/value.rs
Expand Up @@ -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 }
}

Expand Down

0 comments on commit de7bcca

Please sign in to comment.