Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build on powerpc64(le) #142

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix build on powerpc64(le) #142

wants to merge 1 commit into from

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