diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-06 05:38:07 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-06 05:38:07 +0800 |
commit | 305f54b23f9643538a7e3a06d855271be0949035 (patch) | |
tree | 7d3820204b0df301e9c45e5a52d3575267530faa /Types.cpp | |
parent | eaadc71b4c88603a7264211401d249ca1ead22e3 (diff) | |
download | dexon-solidity-305f54b23f9643538a7e3a06d855271be0949035.tar.gz dexon-solidity-305f54b23f9643538a7e3a06d855271be0949035.tar.zst dexon-solidity-305f54b23f9643538a7e3a06d855271be0949035.zip |
Minor Style fixes
Diffstat (limited to 'Types.cpp')
-rw-r--r-- | Types.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -338,19 +338,21 @@ u256 IntegerConstantType::literalValue(Literal const* _literal) const else value = s2u(s256(m_value)); - if (_literal) { - Literal::ethSubDenomination sub =_literal->getSubDenomination(); - switch(sub) { - case Literal::ethSubDenomination::WEI: - case Literal::ethSubDenomination::NONE: + if (_literal) + { + Literal::SubDenomination sub =_literal->getSubDenomination(); + switch(sub) + { + case Literal::SubDenomination::WEI: + case Literal::SubDenomination::NONE: break; - case Literal::ethSubDenomination::SZABO: + case Literal::SubDenomination::SZABO: value *= u256(1000000000000); break; - case Literal::ethSubDenomination::FINNEY: + case Literal::SubDenomination::FINNEY: value *= u256(1000000000000000); break; - case Literal::ethSubDenomination::ETHER: + case Literal::SubDenomination::ETHER: value *= u256(1000000000000000000); break; } |