Skip to content

Commit 7d837ce

Browse files
committed
Hotfix : Updated NaN comparison
1 parent d732294 commit 7d837ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plutus_error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub fn check(c: &HashMap<String, String>, t: Vec<(&str, PlutusFormat)>) -> Plutu
5656
return PlutusError::InvalidFormat
5757
},
5858
Ok(f) => {
59-
if f == std::f64::NAN {
59+
if f.is_nan() {
6060
return PlutusError::InvalidFormat
6161
}
6262
}

0 commit comments

Comments
 (0)