mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Reflect feedback
This commit is contained in:
1 parent
dc3c7a9712
commit
01a5fa1ba9
1 file changed
+1
-5
+1
-5
@@ -95,11 +95,7 @@ pub fn hash_float(value: f64) -> Option<PyHash> {
|
||||
// cpython _Py_HashDouble
|
||||
if !value.is_finite() {
|
||||
return if value.is_infinite() {
|
||||
if value > 0.0 {
|
||||
Some(INF)
|
||||
} else {
|
||||
Some(-INF)
|
||||
}
|
||||
Some(if value > 0.0 { INF } else { -INF })
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user