aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-08-09 03:46:28 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-08-09 03:52:19 +0800
commitd3c3fd20796dd18b7213938bd0ce89e8aeb9d6f3 (patch)
tree9f77fbb0ca2c58b1df864fe8e23355c081b71286 /libevmasm
parent0eeb06b6ead4c6446c7584f7dd5e6c21ec5d26c4 (diff)
downloaddexon-solidity-d3c3fd20796dd18b7213938bd0ce89e8aeb9d6f3.tar
dexon-solidity-d3c3fd20796dd18b7213938bd0ce89e8aeb9d6f3.tar.gz
dexon-solidity-d3c3fd20796dd18b7213938bd0ce89e8aeb9d6f3.tar.bz2
dexon-solidity-d3c3fd20796dd18b7213938bd0ce89e8aeb9d6f3.tar.lz
dexon-solidity-d3c3fd20796dd18b7213938bd0ce89e8aeb9d6f3.tar.xz
dexon-solidity-d3c3fd20796dd18b7213938bd0ce89e8aeb9d6f3.tar.zst
dexon-solidity-d3c3fd20796dd18b7213938bd0ce89e8aeb9d6f3.zip
Use dev::toString() in Assembly instead of misusing string{} for u256
Diffstat (limited to 'libevmasm')
-rw-r--r--libevmasm/Assembly.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libevmasm/Assembly.cpp b/libevmasm/Assembly.cpp
index b71bc80c..28ae9577 100644
--- a/libevmasm/Assembly.cpp
+++ b/libevmasm/Assembly.cpp
@@ -264,7 +264,7 @@ Json::Value Assembly::assemblyJSON(StringMap const& _sourceCodes) const
createJsonValue("PUSH [ErrorTag]", i.location().start, i.location().end, ""));
else
collection.append(
- createJsonValue("PUSH [tag]", i.location().start, i.location().end, string(i.data())));
+ createJsonValue("PUSH [tag]", i.location().start, i.location().end, dev::toString(i.data())));
break;
case PushSub:
collection.append(
@@ -290,7 +290,7 @@ Json::Value Assembly::assemblyJSON(StringMap const& _sourceCodes) const
break;
case Tag:
collection.append(
- createJsonValue("tag", i.location().start, i.location().end, string(i.data())));
+ createJsonValue("tag", i.location().start, i.location().end, dev::toString(i.data())));
collection.append(
createJsonValue("JUMPDEST", i.location().start, i.location().end));
break;