[med-svn] [libundead] 01/01: Fix test by properly testing for NaN

Andreas Tille tille at debian.org
Sat Apr 8 05:51:33 UTC 2017


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository libundead.

commit 0216dd1ea93e7645c59554e8c0f7396dec097e59
Author: Andreas Tille <tille at debian.org>
Date:   Fri Apr 7 15:55:32 2017 +0200

    Fix test by properly testing for NaN
---
 debian/changelog           |  8 ++++++++
 debian/patches/isNan.patch | 17 +++++++++++++++++
 debian/patches/series      |  1 +
 3 files changed, 26 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 0c6262f..887ebef 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+libundead (1.0.6-2) unstable; urgency=medium
+
+  * Fix test by properly testing for NaN (thanks for the hint to
+    Iain Buclaw <ibuclaw at gdcproject.org>)
+    Closes: #859667
+
+ -- Andreas Tille <tille at debian.org>  Fri, 07 Apr 2017 15:53:29 +0200
+
 libundead (1.0.6-1) unstable; urgency=medium
 
   * Initial release (Closes: #856730)
diff --git a/debian/patches/isNan.patch b/debian/patches/isNan.patch
new file mode 100644
index 0000000..5190a30
--- /dev/null
+++ b/debian/patches/isNan.patch
@@ -0,0 +1,17 @@
+Author: Iain Buclaw <ibuclaw at gdcproject.org>
+Last-Update: Wed, 5 Apr 2017 22:22:28 +0200
+Bug-Debian: https://bugs.debian.org/859667
+Description: Properly test for NaN
+
+--- a/src/undead/stream.d
++++ b/src/undead/stream.d
+@@ -1455,7 +1455,8 @@ class Stream : InputStream, OutputStream
+ 
+       float f;
+       assert(s.readf(&f));
+-      assert(x == f || (x != x && f != f)); //either equal or both NaN
++      import std.math;
++      assert(x == f || (isNaN(x) && isNaN(f))); //either equal or both NaN
+     }
+ 
+     tryFloatRoundtrip(1.0);
diff --git a/debian/patches/series b/debian/patches/series
index 966a977..6f230c8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 01_meson-build.patch.patch
 02_fix-import-deprecations.patch
 03_fix-imports.patch
+isNan.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/libundead.git



More information about the debian-med-commit mailing list