diff options
author | chriseth <c@ethdev.com> | 2015-08-04 00:09:39 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-08-04 00:10:08 +0800 |
commit | 6daa27622a06ec7b8a4d67e4d8a1e2dcaa1be982 (patch) | |
tree | 83361eb2e9d2c3084bc8e4d84c181e14010524c2 /Types.cpp | |
parent | 2c476390cadea8a4863b0d29958d53b2a194fcb2 (diff) | |
download | dexon-solidity-6daa27622a06ec7b8a4d67e4d8a1e2dcaa1be982.tar dexon-solidity-6daa27622a06ec7b8a4d67e4d8a1e2dcaa1be982.tar.gz dexon-solidity-6daa27622a06ec7b8a4d67e4d8a1e2dcaa1be982.tar.bz2 dexon-solidity-6daa27622a06ec7b8a4d67e4d8a1e2dcaa1be982.tar.lz dexon-solidity-6daa27622a06ec7b8a4d67e4d8a1e2dcaa1be982.tar.xz dexon-solidity-6daa27622a06ec7b8a4d67e4d8a1e2dcaa1be982.tar.zst dexon-solidity-6daa27622a06ec7b8a4d67e4d8a1e2dcaa1be982.zip |
strings as mapping keys.
Diffstat (limited to 'Types.cpp')
-rw-r--r-- | Types.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -179,6 +179,8 @@ TypePointer Type::fromMapping(ElementaryTypeName& _keyType, TypeName& _valueType BOOST_THROW_EXCEPTION(_valueType.createTypeError("Invalid type name.")); // Convert value type to storage reference. valueType = ReferenceType::copyForLocationIfReference(DataLocation::Storage, valueType); + // Convert key type to memory. + keyType = ReferenceType::copyForLocationIfReference(DataLocation::Memory, keyType); return make_shared<MappingType>(keyType, valueType); } |