diff options
author | Gav Wood <i@gavwood.com> | 2014-06-29 01:23:32 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-06-29 01:23:32 +0800 |
commit | 674ff8e3cc1e95a351d14683db7b67a7822d5aa3 (patch) | |
tree | 7e1badfab76588f9d5675d3fbd3d113593449c71 /Assembly.h | |
parent | 5e2b4bbd58f1d244d1aab985e07835071692d7a5 (diff) | |
download | dexon-solidity-674ff8e3cc1e95a351d14683db7b67a7822d5aa3.tar.gz dexon-solidity-674ff8e3cc1e95a351d14683db7b67a7822d5aa3.tar.zst dexon-solidity-674ff8e3cc1e95a351d14683db7b67a7822d5aa3.zip |
Full python serpent support.
Shared libs on all platforms.
Diffstat (limited to 'Assembly.h')
-rw-r--r-- | Assembly.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -70,8 +70,8 @@ class Assembly public: AssemblyItem newTag() { return AssemblyItem(Tag, m_usedTags++); } AssemblyItem newPushTag() { return AssemblyItem(PushTag, m_usedTags++); } - AssemblyItem newData(bytes const& _data) { auto h = sha3(_data); m_data[h] = _data; return AssemblyItem(PushData, h); } - AssemblyItem newPushString(std::string const& _data) { auto h = sha3(_data); m_strings[h] = _data; return AssemblyItem(PushString, h); } + AssemblyItem newData(bytes const& _data) { h256 h = (u256)std::hash<std::string>()(asString(_data)); m_data[h] = _data; return AssemblyItem(PushData, h); } + AssemblyItem newPushString(std::string const& _data) { h256 h = (u256)std::hash<std::string>()(_data); m_strings[h] = _data; return AssemblyItem(PushString, h); } AssemblyItem append() { return append(newTag()); } void append(Assembly const& _a); |