aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-06 05:38:07 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-06 05:38:07 +0800
commit305f54b23f9643538a7e3a06d855271be0949035 (patch)
tree7d3820204b0df301e9c45e5a52d3575267530faa /Types.cpp
parenteaadc71b4c88603a7264211401d249ca1ead22e3 (diff)
downloaddexon-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.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/Types.cpp b/Types.cpp
index c554f355..a8b3add4 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -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;
}