Skip to content

Conversation

quickfur
Copy link
Member

@quickfur quickfur commented Jul 8, 2013

The problem was that BigInt didn't declare toHash, and BigInt's typeinfo wasn't using the custom version of opCmp instead of the default bitwise opCmp.

@quickfur
Copy link
Member Author

quickfur commented Jul 9, 2013

Rebased.

// Implement toHash so that BigUint works properly as an AA key.
size_t toHash() const @trusted nothrow
{
return typeid(data).getHash(&data);
Copy link
Contributor

Choose a reason for hiding this comment

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

hard tab?

@9rnsr
Copy link
Contributor

9rnsr commented Jul 15, 2013

Other than nitpicks, looks good.

@quickfur
Copy link
Member Author

ping

@9rnsr
Copy link
Contributor

9rnsr commented Jul 23, 2013

LGTM

9rnsr added a commit that referenced this pull request Jul 23, 2013
@9rnsr 9rnsr merged commit fc12f98 into dlang:master Jul 23, 2013
@quickfur quickfur deleted the bigint_hash branch July 16, 2014 05:00
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