Skip to content

Commit

Permalink
Update src/compiler/conversion/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Pavlos Rontidis <pavlos.rontidis@gmail.com>
  • Loading branch information
dhable and pront authored Nov 13, 2024
1 parent 07c60e8 commit 309b10f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/conversion/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl Conversion {
.with_context(|_| FloatParseSnafu { s: s.clone() })?;
if !parsed.is_normal() {
return Err(Error::NanFloat {
s: format!("Invalid float \"{s}\": number too large to fit in target type"),
s: format!("Invalid float \"{s}\": not a normal f64 number"),
});
}
let f = NotNan::new(parsed).map_err(|_| Error::NanFloat { s: s.to_string() })?;
Expand Down

0 comments on commit 309b10f

Please sign in to comment.