diff options
author | chriseth <c@ethdev.com> | 2015-01-27 20:53:13 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-01-27 20:53:13 +0800 |
commit | 18fc2ed2d6a58b0064f6c1d2430ffe988f68b7ca (patch) | |
tree | d83c226c64315d5994190b61fc93c0a74fbd809d /Types.h | |
parent | 8dbdaa79e37619fc79b7111b12d5385f140fd1a1 (diff) | |
parent | cad3d87482464017870080c54e3392bc5503ab20 (diff) | |
download | dexon-solidity-18fc2ed2d6a58b0064f6c1d2430ffe988f68b7ca.tar.gz dexon-solidity-18fc2ed2d6a58b0064f6c1d2430ffe988f68b7ca.tar.zst dexon-solidity-18fc2ed2d6a58b0064f6c1d2430ffe988f68b7ca.zip |
Merge pull request #857 from LianaHus/StringToHash
conversion for string to/from hash
Diffstat (limited to 'Types.h')
-rw-r--r-- | Types.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -233,9 +233,10 @@ public: /// if no type fits. static std::shared_ptr<StaticStringType> smallestTypeForLiteral(std::string const& _literal); - StaticStringType(int _bytes); + explicit StaticStringType(int _bytes); virtual bool isImplicitlyConvertibleTo(Type const& _convertTo) const override; + virtual bool isExplicitlyConvertibleTo(Type const& _convertTo) const override; virtual bool operator==(Type const& _other) const override; virtual unsigned getCalldataEncodedSize() const override { return m_bytes; } |