Merge pull request #5348 from ethereum/boostRationalNegativeDenominatorFix

Fix negative denominator in ``boost::rational`` during exponentiation.
This commit is contained in:
chriseth
2018-11-08 11:25:30 +01:00
committed by GitHub
3 changed files with 16 additions and 2 deletions
@@ -0,0 +1,5 @@
contract C {
function f() public pure returns (int) {
return (-1 / 2) ** -1;
}
}