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

In Int32Value, cast to u32 before casting to u64. #56

Merged
merged 1 commit into from Mar 10, 2014
Merged

Conversation

@Ms2ger
Copy link
Collaborator

Ms2ger commented Mar 10, 2014

Casting to u64 directly is equivalent to first casting to i64, which does
sign extension. For negative values, this fills the highest 32 bits with
ones rather than the zeros we need.

Casting to u64 directly is equivalent to first casting to i64, which does
sign extension. For negative values, this fills the highest 32 bits with
ones rather than the zeros we need.
jdm added a commit that referenced this pull request Mar 10, 2014
In Int32Value, cast to u32 before casting to u64.
@jdm jdm merged commit 6368920 into servo:master Mar 10, 2014
mmatyas pushed a commit to mmatyas/rust-mozjs that referenced this pull request Jul 30, 2015
Stop using shared GL contexts and move to native OS surface sharing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.