Skip to content

Remove the make warnings on comparing size_t and int values#385

Merged
mtfishman merged 1 commit intov3from
warnings
Mar 18, 2021
Merged

Remove the make warnings on comparing size_t and int values#385
mtfishman merged 1 commit intov3from
warnings

Conversation

@mingruyang
Copy link
Copy Markdown
Contributor

.size() returns a unsigned long int, so to detect the overflow it should be compared with the same variable type.

@mtfishman
Copy link
Copy Markdown
Member

Thanks Mingru!

@mtfishman mtfishman merged commit fd7c677 into v3 Mar 18, 2021
@mtfishman mtfishman deleted the warnings branch March 18, 2021 18:49
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