jellyfish@1.1.11: Change the type of the array dna_codes to the signed type. (#19019)
* jellyfish@1.1.11: Change the type of the array dna_codes to the signed type. * jellyfish@1.1.11: Add patch file
This commit is contained in:
parent
588cf7e03c
commit
b7ed6b4fe0
2 changed files with 24 additions and 0 deletions
22
var/spack/repos/builtin/packages/jellyfish/dna_codes.patch
Normal file
22
var/spack/repos/builtin/packages/jellyfish/dna_codes.patch
Normal file
|
@ -0,0 +1,22 @@
|
|||
--- spack-src/jellyfish/dna_codes.hpp.bak 2013-05-30 04:45:57.000000000 +0900
|
||||
+++ spack-src/jellyfish/dna_codes.hpp 2020-09-28 10:37:14.580832234 +0900
|
||||
@@ -14,7 +14,7 @@
|
||||
static const uint_t CODE_IGNORE = (uint_t)-2;
|
||||
static const uint_t CODE_COMMENT = (uint_t)-3;
|
||||
static const uint_t CODE_NOT_DNA = ((uint_t)1) << (bsizeof(uint_t) - 1);
|
||||
-extern const char dna_codes[256];
|
||||
+extern const signed char dna_codes[256];
|
||||
};
|
||||
|
||||
#endif /* __DNA_CODE_HPP__ */
|
||||
--- spack-src/jellyfish/dna_codes.cc.bak 2013-05-30 04:45:57.000000000 +0900
|
||||
+++ spack-src/jellyfish/dna_codes.cc 2020-09-28 10:29:08.810848835 +0900
|
||||
@@ -7,7 +7,7 @@
|
||||
#define C 1
|
||||
#define G 2
|
||||
#define T 3
|
||||
-const char jellyfish::dna_codes[256] = {
|
||||
+const signed char jellyfish::dna_codes[256] = {
|
||||
O, O, O, O, O, O, O, O, O, O, I, O, O, O, O, O,
|
||||
O, O, O, O, O, O, O, O, O, O, O, O, O, O, O, O,
|
||||
O, O, O, O, O, O, O, O, O, O, O, O, O, R, O, O,
|
|
@ -20,3 +20,5 @@ class Jellyfish(AutotoolsPackage):
|
|||
|
||||
depends_on('perl', type=('build', 'run'))
|
||||
depends_on('python', type=('build', 'run'))
|
||||
|
||||
patch('dna_codes.patch', when='@1.1.11')
|
||||
|
|
Loading…
Reference in a new issue