Merge pull request #5572 from ethereum/fix-compilation-macos

Fix 0.4.25 compilation macos
This commit is contained in:
chriseth 2018-12-04 11:39:38 +01:00 committed by GitHub
commit 0bdcf1b317
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -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, 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, toString(i.data())));
collection.append(
createJsonValue("JUMPDEST", i.location().start, i.location().end));
break;

View File

@ -606,7 +606,8 @@ bool Parser::isValidNumberLiteral(string const& _literal)
{
try
{
u256(_literal);
u256 v(_literal);
(void)v;
}
catch (...)
{