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

Fix unary minus operator applied to unsigned int #110

Closed
wants to merge 1 commit into from

Conversation

kojiishi
Copy link
Contributor

Applying unary minus operator to unsigned int causes the following warning on MSVS:
warning C4146: unary minus operator applied to unsigned type, result still unsigned

This patch fixes the warning.

Applying unary minus operator to unsigned int causes the following warning on MSVS:
  warning C4146: unary minus operator applied to unsigned type, result still unsigned

This patch fixes the warning.
@behdad behdad closed this in f1b4430 May 21, 2015
@behdad
Copy link
Member

behdad commented May 21, 2015

Thanks. Fixed.

gpgreen pushed a commit to gpgreen/harfbuzz that referenced this pull request Jan 10, 2024
[breaking change] Make raw pointer fields private

This is necessary for safety; otherwise safe Rust code could cause memory-safety violations by writing to the `raw` field and then calling safe methods.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-harfbuzz/110)
<!-- Reviewable:end -->
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