Skip to content

Conversation

@pkubaj
Copy link

@pkubaj pkubaj commented Oct 25, 2020

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<char>( )
1 error generated.

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<char>( )
1 error generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant