diamond: fix narrowing error. (#14064)
* diamond: fix narrowing error * diamond: fix patch * diamond: add link to the patch source
This commit is contained in:
parent
d4326038b9
commit
b0a7c8487d
@ -0,0 +1,18 @@
|
|||||||
|
--- diamond-0.9.25/src/basic/score_matrix.cpp.org 2019-12-10 15:16:46.549126025 +0900
|
||||||
|
+++ diamond-0.9.25/src/basic/score_matrix.cpp 2019-12-10 15:17:08.721466092 +0900
|
||||||
|
@@ -36,7 +36,7 @@
|
||||||
|
|
||||||
|
const double INT2_MAX = std::numeric_limits<double>::max();
|
||||||
|
|
||||||
|
-const char DNA_scores[5 * 5] = {
|
||||||
|
+const signed char DNA_scores[5 * 5] = {
|
||||||
|
2, -3, -3, -3, -3,
|
||||||
|
-3,2,-3,-3,-3,
|
||||||
|
-3,-3,2,-3,-3,
|
||||||
|
@@ -317,4 +317,4 @@
|
||||||
|
constants[3] = lambda;
|
||||||
|
constants[4] = K;
|
||||||
|
constants_ = constants;
|
||||||
|
-}
|
||||||
|
\ No newline at end of file
|
||||||
|
+}
|
@ -24,3 +24,7 @@ class Diamond(CMakePackage):
|
|||||||
version('0.8.26', sha256='00d2be32dad76511a767ab8e917962c0ecc572bc808080be60dec028df45439f')
|
version('0.8.26', sha256='00d2be32dad76511a767ab8e917962c0ecc572bc808080be60dec028df45439f')
|
||||||
|
|
||||||
depends_on('zlib')
|
depends_on('zlib')
|
||||||
|
|
||||||
|
# fix error [-Wc++11-narrowing]
|
||||||
|
# Ref: https://github.com/bbuchfink/diamond/commit/155e076d662b0e9268e2b00bef6d33d90aede7ff
|
||||||
|
patch('fix_narrowing_error.patch')
|
||||||
|
Loading…
Reference in New Issue
Block a user