Skip to content

Conversation

@borisoff
Copy link

@borisoff borisoff commented Dec 16, 2019

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

size_t s = 0;

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.

2 participants