diff options
author | liana <liana@ethdev.com> | 2015-01-24 00:36:12 +0800 |
---|---|---|
committer | liana <liana@ethdev.com> | 2015-01-24 00:45:37 +0800 |
commit | 5de93e6acb81b9a39c1e8f1772dde81d5131e7e3 (patch) | |
tree | aec395a0f6011b1216c0ccc2f2a91e2e5d4bbc33 /Types.h | |
parent | 376c6182ad813384af43bdf198c4afd596699750 (diff) | |
download | dexon-solidity-5de93e6acb81b9a39c1e8f1772dde81d5131e7e3.tar.gz dexon-solidity-5de93e6acb81b9a39c1e8f1772dde81d5131e7e3.tar.zst dexon-solidity-5de93e6acb81b9a39c1e8f1772dde81d5131e7e3.zip |
- added conversion for string/hash of equal sizes
- added tests
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; } |