aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-03-12 00:52:18 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-03-12 19:53:00 +0800
commitc81b4989535cde327b95a65c53fd271dc1e52f82 (patch)
tree290b6de3884751d0b3fa09c2b385e82a31ea8cd6
parentb8cede371dc5b7d5c40188dbb65eff293d7dd6ff (diff)
downloaddexon-solidity-c81b4989535cde327b95a65c53fd271dc1e52f82.tar
dexon-solidity-c81b4989535cde327b95a65c53fd271dc1e52f82.tar.gz
dexon-solidity-c81b4989535cde327b95a65c53fd271dc1e52f82.tar.bz2
dexon-solidity-c81b4989535cde327b95a65c53fd271dc1e52f82.tar.lz
dexon-solidity-c81b4989535cde327b95a65c53fd271dc1e52f82.tar.xz
dexon-solidity-c81b4989535cde327b95a65c53fd271dc1e52f82.tar.zst
dexon-solidity-c81b4989535cde327b95a65c53fd271dc1e52f82.zip
Style fixes in Types[cpp/h]
-rw-r--r--Types.cpp5
-rw-r--r--Types.h4
2 files changed, 4 insertions, 5 deletions
diff --git a/Types.cpp b/Types.cpp
index aacf56fa..6f8d4b6b 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -178,8 +178,8 @@ bool IntegerType::isImplicitlyConvertibleTo(Type const& _convertTo) const
bool IntegerType::isExplicitlyConvertibleTo(Type const& _convertTo) const
{
return _convertTo.getCategory() == getCategory() ||
- _convertTo.getCategory() == Category::Contract ||
- _convertTo.getCategory() == Category::Enum ||
+ _convertTo.getCategory() == Category::Contract ||
+ _convertTo.getCategory() == Category::Enum ||
_convertTo.getCategory() == Category::FixedBytes;
}
@@ -488,7 +488,6 @@ TypePointer FixedBytesType::unaryOperatorResult(Token::Value _operator) const
TypePointer FixedBytesType::binaryOperatorResult(Token::Value _operator, TypePointer const& _other) const
{
auto commonType = dynamic_pointer_cast<FixedBytesType const>(Type::commonType(shared_from_this(), _other));
-
if (!commonType)
return TypePointer();
diff --git a/Types.h b/Types.h
index 6517cf07..fd59a37a 100644
--- a/Types.h
+++ b/Types.h
@@ -158,7 +158,7 @@ protected:
};
/**
- * Any kind of integer type including address.
+ * Any kind of integer type (signed, unsigned, address).
*/
class IntegerType: public Type
{
@@ -231,7 +231,7 @@ private:
};
/**
- * Bytes type with fixed length of up to 32 bytes
+ * Bytes type with fixed length of up to 32 bytes.
*/
class FixedBytesType: public Type
{