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

Fixed compilation with -Werror=sign-compare option. #108

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

Fixed compilation with -Werror=sign-compare option. #108

wants to merge 1 commit into from

Conversation

borisoff
Copy link

@borisoff borisoff commented Dec 16, 2019

My changes allow to compile with -Werror=reorder and -Werror=sign-compare.

for (size_t i = lstart; i < lend; i++)
for (size_t i = lstart; (int)i < lend; i++)
Copy link
Contributor

@berdal84 berdal84 Feb 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you think it will be better to change the type of aEnd.mLine instead ?

Using a C style cast (int)i make the compilation warning disappear but the problem overflow problem remains.

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.

None yet

2 participants