fixup! Simplify tostring.

This commit is contained in:
chriseth 2022-03-21 11:38:12 +01:00
parent 24068116d9
commit 9ae32ed395

View File

@ -58,9 +58,9 @@ void resizeAndSet(vector<T>& _vector, size_t _index, T _value)
string toString(rational const& _x) string toString(rational const& _x)
{ {
if (_x == u256(1) << 256) if (_x == bigint(1) << 256)
return "2**256"; return "2**256";
else if (_x == (u256(1) << 256) - 1) else if (_x == (bigint(1) << 256) - 1)
return "2**256-1"; return "2**256-1";
else if (_x.denominator() == 1) else if (_x.denominator() == 1)
return _x.numerator().str(); return _x.numerator().str();