bowtie : Fix for aarch64 (#18709)

This commit is contained in:
t-nojiri 2020-09-18 01:42:32 +09:00 committed by GitHub
parent 7c01c64d53
commit b66d756da6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -1,11 +1,11 @@
--- a/alphabet.cpp 2020-07-28 15:02:56.137635525 -0400 --- spack-src/alphabet.cpp.bak 2020-07-23 11:52:57.000000000 +0900
+++ b/alphabet.cpp 2020-07-28 15:05:32.385589360 -0400 +++ spack-src/alphabet.cpp 2020-09-16 17:05:52.093190703 +0900
@@ -274,7 +274,7 @@ @@ -274,7 +274,7 @@
const char *iupacs = "!ACMGRSVTWYHKDBN!acmgrsvtwyhkdbn"; const char *iupacs = "!ACMGRSVTWYHKDBN!acmgrsvtwyhkdbn";
signed char mask2iupac[16] = { signed char mask2iupac[16] = {
- -1, - -1,
+ static_cast<char>(-1), + static_cast<signed char>(-1),
'A', // 0001 'A', // 0001
'C', // 0010 'C', // 0010
'M', // 0011 'M', // 0011

View file

@ -48,10 +48,10 @@ class Bowtie(MakefilePackage):
# correspond to 'aarch64' architecture # correspond to 'aarch64' architecture
# reference: https://github.com/BenLangmead/bowtie/pull/13 # reference: https://github.com/BenLangmead/bowtie/pull/13
patch('for_aarch64.patch', when='target=aarch64:') patch('for_aarch64.patch', when='@1.2:1.2.999 target=aarch64:')
# measures for narrowing error # measures for narrowing error
patch('fix_narrowing_err.patch', when='@:1.2.3') patch('fix_narrowing_err.patch', when='@1.2.1:1.2.3')
patch('fix_narrowing_err_1.3.0.patch', when='@1.3.0:') patch('fix_narrowing_err_1.3.0.patch', when='@1.3.0:')
def edit(self, spec, prefix): def edit(self, spec, prefix):