File: fix-test.patch

package info (click to toggle)
rust-exr 1.73.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,256 kB
  • sloc: makefile: 2
file content (11 lines) | stat: -rw-r--r-- 389 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
--- a/tests/roundtrip.rs
+++ b/tests/roundtrip.rs
@@ -347,7 +347,7 @@
     let original_pixels: [(f16,f32,f32); 4] = [
         (0.0.to_f16(), -1.1, std::f32::consts::PI),
         (9.1.to_f16(), -3.1, std::f32::consts::TAU),
-        (-10.0.to_f16(), -11.1, f32::EPSILON),
+        ((-10.0).to_f16(), -11.1, f32::EPSILON),
         (half::f16::NAN, 10000.1, -1024.009),
     ];