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 for new rustc warnings #11

Merged
merged 1 commit into from
Jan 5, 2018
Merged

Fix for new rustc warnings #11

merged 1 commit into from
Jan 5, 2018

Conversation

CasualX
Copy link
Owner

@CasualX CasualX commented Jan 5, 2018

* Remove all `#[repr(packed)]` on the IMAGE structs due to a misunderstanding of the Windows.h struct definitions:
Only the old 16-bit headers want 2 byte packing, all the others want 4 byte packing. However all of these structs end up already aligned anyway.
Safeguard their implementation by asserting their sizes.

  Fixes rust-lang/rust#46043

* Explicitly specify the raw pointer type when casting from reference and calling a method on it.

  Fixes rust-lang/rust#46906
@CasualX CasualX self-assigned this Jan 5, 2018
@CasualX CasualX merged commit b95fd62 into master Jan 5, 2018
@CasualX CasualX deleted the features/rustc-issues branch January 5, 2018 15:21
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.

1 participant