diff options
author | Peter Levine <plevine457@gmail.com> | 2017-07-22 21:31:58 -0400 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-07-30 11:09:27 +0200 |
commit | 61d3ecd7b439ebd0d08613df3dd92b272bb523de (patch) | |
tree | 97b01ca08010308013c8c60f837bbc8f48b72801 /sci-biology/express/files | |
parent | games-strategy/s25rttr: Fix building with GCC-6 (diff) | |
download | gentoo-61d3ecd7b439ebd0d08613df3dd92b272bb523de.tar.gz gentoo-61d3ecd7b439ebd0d08613df3dd92b272bb523de.tar.bz2 gentoo-61d3ecd7b439ebd0d08613df3dd92b272bb523de.zip |
sci-biology/express: Fix building with GCC-6
Bug: https://bugs.gentoo.org/show_bug.cgi?id=610692
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/5179
Diffstat (limited to 'sci-biology/express/files')
-rw-r--r-- | sci-biology/express/files/express-1.5.1-gcc6.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sci-biology/express/files/express-1.5.1-gcc6.patch b/sci-biology/express/files/express-1.5.1-gcc6.patch new file mode 100644 index 000000000000..8a608b97b056 --- /dev/null +++ b/sci-biology/express/files/express-1.5.1-gcc6.patch @@ -0,0 +1,19 @@ +Bug: https://bugs.gentoo.org/610692 + +--- a/src/targets.cpp ++++ b/src/targets.cpp +@@ -113,12 +113,12 @@ + + double ll = LOG_1; + double tot_mass = mass(with_pseudo); +- double tot_eff_len = cached_effective_length(lib.bias_table); ++ double tot_eff_len = cached_effective_length(static_cast<bool>(lib.bias_table)); + if (neighbors) { + foreach (const Target* neighbor, *neighbors) { + tot_mass = log_add(tot_mass, neighbor->mass(with_pseudo)); + tot_eff_len = log_add(tot_eff_len, +- neighbor->cached_effective_length(lib.bias_table)); ++ neighbor->cached_effective_length(static_cast<bool>(lib.bias_table))); + } + } + ll += tot_mass - tot_eff_len; |