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

Remove useless negative check for unsigned variables #11

Open
ldilley opened this issue Apr 26, 2017 · 0 comments
Open

Remove useless negative check for unsigned variables #11

ldilley opened this issue Apr 26, 2017 · 0 comments
Assignees
Labels

Comments

@ldilley
Copy link
Owner

ldilley commented Apr 26, 2017

salad/src/list.c:154:12: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]

if(index < 0 || index > sld_list_size(list))

&&

salad/src/vector.c:146:12:

if(index < 0 || index >= vector->object_count)
@ldilley ldilley added the bug label Apr 26, 2017
@ldilley ldilley self-assigned this Apr 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant