aboutsummaryrefslogtreecommitdiffstats
path: root/Types.h
diff options
context:
space:
mode:
authorliana <liana@ethdev.com>2015-01-24 00:36:12 +0800
committerliana <liana@ethdev.com>2015-01-24 00:45:37 +0800
commit5de93e6acb81b9a39c1e8f1772dde81d5131e7e3 (patch)
treeaec395a0f6011b1216c0ccc2f2a91e2e5d4bbc33 /Types.h
parent376c6182ad813384af43bdf198c4afd596699750 (diff)
downloaddexon-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Types.h b/Types.h
index e6c99fe3..e4742966 100644
--- a/Types.h
+++ b/Types.h
@@ -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; }