Skip to content

Commit

Permalink
mark toHash as public
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Stepanov committed Aug 22, 2014
1 parent 76a10aa commit f6512bd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions std/bigint.d
Expand Up @@ -527,6 +527,12 @@ private:
return buff;
}
+/
// Implement toHash so that BigInt works properly as an AA key.
size_t toHash() const @trusted nothrow
{
return data.toHash() + sign;
}

private:
void negate() @safe pure nothrow
{
Expand All @@ -548,12 +554,6 @@ private:
if (isZero())
throw new Error("BigInt division by zero");
}

// Implement toHash so that BigInt works properly as an AA key.
size_t toHash() const @trusted nothrow
{
return data.toHash() + sign;
}
}

string toDecimalString(const(BigInt) x)
Expand Down

0 comments on commit f6512bd

Please sign in to comment.