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 <[email protected]> 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 <[email protected]>) + Closes: #859667 + + -- Andreas Tille <[email protected]> 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 <[email protected]> +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 _______________________________________________ debian-med-commit mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit
