aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-06-05 00:06:06 +0800
committerLiana Husikyan <liana@ethdev.com>2015-06-05 00:06:06 +0800
commita8505e598f6a72f3c823068f4ea3320810906835 (patch)
tree262bc2bf280db212ff6370a8438fbd1e4d0a8f83 /Types.cpp
parent4e15a391076bfe3421cee0ef6a4bc847ddc0f46f (diff)
downloaddexon-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.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Types.cpp b/Types.cpp
index bf79be31..33eafb15 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -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