Browse Source

Style fixes in Types[cpp/h]

cl-refactor
Lefteris Karapetsas 10 years ago
parent
commit
afc20d2517
  1. 5
      libsolidity/Types.cpp
  2. 4
      libsolidity/Types.h

5
libsolidity/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();

4
libsolidity/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
{

Loading…
Cancel
Save