[med-svn] [nanopolish] 03/03: Make sure abs() gets int arguments
Andreas Tille
tille at debian.org
Thu Aug 31 21:50:40 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository nanopolish.
commit fbe48f94c8acb5c28fb13ecd65c2f675c0b36813
Author: Andreas Tille <tille at debian.org>
Date: Thu Aug 31 23:44:46 2017 +0200
Make sure abs() gets int arguments
---
debian/changelog | 2 ++
debian/patches/gcc-7.patch | 16 ++++++++++++++++
debian/patches/series | 1 +
3 files changed, 19 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index f7b8c32..51dbc2b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ nanopolish (0.5.0-2) UNRELEASED; urgency=medium
* Team upload
* debhelper 10
* Standards-Version: 4.1.0 (no changes needed)
+ * Make sure abs() gets int arguments
+ Closes: #853568
-- Andreas Tille <tille at debian.org> Thu, 31 Aug 2017 23:33:00 +0200
diff --git a/debian/patches/gcc-7.patch b/debian/patches/gcc-7.patch
new file mode 100644
index 0000000..b7fa956
--- /dev/null
+++ b/debian/patches/gcc-7.patch
@@ -0,0 +1,16 @@
+Autor: Andreas Tille <tille at debian.org>
+last-Update: Thu, 31 Aug 2017 23:33:00 +0200
+Bug-Debian: https://bugs.debian.org/853568
+Description: Make sure abs() gets int arguments
+
+--- a/src/alignment/nanopolish_eventalign.cpp
++++ b/src/alignment/nanopolish_eventalign.cpp
+@@ -679,7 +679,7 @@ std::vector<EventAlignment> align_read_t
+ // over very large deletions wrt to the reference. The effect of this
+ // is that we can get segments that have very few alignable events. We
+ // just stop processing them for now
+- if(abs(input.event_start_idx - input.event_stop_idx) < 2)
++ if(abs(int(input.event_start_idx) - int(input.event_stop_idx)) < 2)
+ break;
+
+ input.strand = params.strand_idx;
diff --git a/debian/patches/series b/debian/patches/series
index d66d531..b30a50b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@ add-shebang-to-script.patch
fix-ftbfs-with-gcc6.patch
reproducible.patch
fast5-0.5.6.patch
+gcc-7.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/nanopolish.git
More information about the debian-med-commit
mailing list