Skip to content

Conversation

@ucko
Copy link
Contributor

@ucko ucko commented May 30, 2024

The compiler always insists on treating the difference between two pointers as potentially negative, yielding warnings when comparing it to an integer that has (or will soon have) a pointer-width unsigned type. Equivalent pointer-to-pointer comparisons yield no such warnings and are still clear.

Split from #555.

The compiler always insists on treating the difference between two
pointers as potentially negative, yielding warnings when comparing it to
an integer that has (or will soon have) a pointer-width unsigned type.
Equivalent pointer-to-pointer comparisons yield no such warnings and are
still clear.

Signed-off-by: Aaron M. Ucko <ucko@ncbi.nlm.nih.gov>
@freddy77
Copy link
Contributor

freddy77 commented Jun 1, 2024

Merged

@freddy77 freddy77 closed this Jun 1, 2024
@ucko
Copy link
Contributor Author

ucko commented Jun 18, 2024

Thanks!

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