Remove unused tests and add asserts for not implemented parts in code generation.

quick fix on christian's rational

change so that ubuntu will stop yelling

be more specific with rational declaration for Windows sake

rational in namespace correction for windows
This commit is contained in:
chriseth authored and VoR0220 committed 2016-05-10 16:03:33 -05:00
1 parent 656405240e
commit d4206b7cd0
7 files changed
+19 -37

No files matched your search

+2 -3
View File
@@ -32,7 +32,6 @@
using namespace std;
using namespace dev;
using namespace dev::solidity;
using rational = boost::rational<bigint>;
void StorageOffsets::computeOffsets(TypePointers const& _types)
{
@@ -769,8 +768,8 @@ shared_ptr<FixedPointType const> RationalNumberType::fixedPointType() const
unsigned fractionalBits = 0;
rational value = abs(m_value); // We care about the sign later.
rational maxValue = negative ?
rational(bigint(1) << 255):
rational((bigint(1) << 256) - 1);
rational(bigint(1) << 255, 1):
rational((bigint(1) << 256) - 1, 1);
while (value * 0x100 <= maxValue && value.denominator() != 1 && fractionalBits < 256)
{