From fe201b3b54ca326f46b2b7adeb3e8efce7dd878a Mon Sep 17 00:00:00 2001 From: pkubaj Date: Sun, 25 Oct 2020 22:54:06 +0000 Subject: [PATCH] Fix build on powerpc64(le) dir should be signed, same as a class variable dirB. Otherwise build fails on PPC: src/tigr/postnuc.cc:174:37: error: non-constant-expression cannot be narrowed from type 'signed char' to 'char' in initializer list [-Wc++11-narrowing] Alignments.push_back({ *Mp, CurrCp->dirB } ); ^~~~~~~~~~~~ src/tigr/postnuc.cc:174:37: note: insert an explicit cast to silence this issue Alignments.push_back({ *Mp, CurrCp->dirB } ); ^~~~~~~~~~~~ static_cast( ) 1 error generated. --- include/mummer/postnuc.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mummer/postnuc.hh b/include/mummer/postnuc.hh index 3a9b552..82718f5 100644 --- a/include/mummer/postnuc.hh +++ b/include/mummer/postnuc.hh @@ -67,7 +67,7 @@ struct Alignment // trust me, it is a very helpful value long int Errors, SimErrors, NonAlphas; // errors, similarity errors, nonalphas - Alignment(const Match& m, const char dir) + Alignment(const Match& m, const signed char dir) : dirB(dir) , sA(m.sA) , sB(m.sB)