diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-06-05 00:06:06 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-06-05 00:06:06 +0800 |
commit | a8505e598f6a72f3c823068f4ea3320810906835 (patch) | |
tree | 262bc2bf280db212ff6370a8438fbd1e4d0a8f83 /Types.cpp | |
parent | 4e15a391076bfe3421cee0ef6a4bc847ddc0f46f (diff) | |
download | dexon-solidity-a8505e598f6a72f3c823068f4ea3320810906835.tar.gz dexon-solidity-a8505e598f6a72f3c823068f4ea3320810906835.tar.zst dexon-solidity-a8505e598f6a72f3c823068f4ea3320810906835.zip |
Update Types.cpp
Diffstat (limited to 'Types.cpp')
-rw-r--r-- | Types.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -376,12 +376,12 @@ bool IntegerConstantType::isImplicitlyConvertibleTo(Type const& _convertTo) cons return false; } else if (_convertTo.getCategory() == Category::FixedBytes) - { - FixedBytesType const& fixedBytes = dynamic_cast<FixedBytesType const&>(_convertTo); - return fixedBytes.getNumBytes() * 8 >= getIntegerType()->getNumBits(); - } - else - return false; + { + FixedBytesType const& fixedBytes = dynamic_cast<FixedBytesType const&>(_convertTo); + return fixedBytes.getNumBytes() * 8 >= getIntegerType()->getNumBits(); + } + else + return false; } bool IntegerConstantType::isExplicitlyConvertibleTo(Type const& _convertTo) const |