Skip to content

Fix 32- vs 64-bit platform instability in StableHasher. #45522

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Oct 26, 2017

Conversation

michaelwoerister
Copy link
Member

@michaelwoerister michaelwoerister commented Oct 25, 2017

This might already be enough to fix issue #45500.

r? @alexcrichton

@@ -132,8 +132,11 @@ impl<W> Hasher for StableHasher<W> {

Copy link
Contributor

@arielb1 arielb1 Oct 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a comment that says

// For the non-u8 integer cases we leb128 encode them first. Because small

and another comment that says

/// At the moment, we pass i8/u8 straight through and encode
/// all other integers using leb128.

Please fix it

@arielb1
Copy link
Contributor

arielb1 commented Oct 25, 2017

r=me with comments fixed

@kennytm kennytm added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Oct 25, 2017
@michaelwoerister
Copy link
Member Author

Thanks for the review, @arielb1!

@bors r=arielb1

@bors
Copy link
Collaborator

bors commented Oct 26, 2017

📌 Commit 54818b3 has been approved by arielb1

@kennytm kennytm added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 26, 2017
@bors
Copy link
Collaborator

bors commented Oct 26, 2017

⌛ Testing commit 54818b3 with merge 847f4fc...

bors added a commit that referenced this pull request Oct 26, 2017
…ielb1

Fix 32- vs 64-bit platform instability in StableHasher.

This might already be enough to fix issue #45500.

r? @alexcrichton
@bors
Copy link
Collaborator

bors commented Oct 26, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: arielb1
Pushing 847f4fc to master...

@bors bors merged commit 54818b3 into rust-lang:master Oct 26, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants