diff options
author | chriseth <c@ethdev.com> | 2017-01-18 21:09:40 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2017-01-18 21:09:40 +0800 |
commit | c16e141ffbca70174c0efa119dbe7c7ef14b5286 (patch) | |
tree | 16a2f48de9f2b1b65498908902ab8969f45ee486 /libsolidity/ast | |
parent | 4f4963131bd969fa063a3aad980139dad2034087 (diff) | |
download | dexon-solidity-c16e141ffbca70174c0efa119dbe7c7ef14b5286.tar.gz dexon-solidity-c16e141ffbca70174c0efa119dbe7c7ef14b5286.tar.zst dexon-solidity-c16e141ffbca70174c0efa119dbe7c7ef14b5286.zip |
Fix JSON output on macos.
Diffstat (limited to 'libsolidity/ast')
-rw-r--r-- | libsolidity/ast/ASTJsonConverter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/ast/ASTJsonConverter.cpp b/libsolidity/ast/ASTJsonConverter.cpp index de8fde92..69c10c8d 100644 --- a/libsolidity/ast/ASTJsonConverter.cpp +++ b/libsolidity/ast/ASTJsonConverter.cpp @@ -42,7 +42,7 @@ void ASTJsonConverter::addJsonNode( { Json::Value node; - node["id"] = _node.id(); + node["id"] = Json::UInt64(_node.id()); node["src"] = sourceLocationToString(_node.location()); node["name"] = _nodeName; if (_attributes.size() != 0) @@ -124,7 +124,7 @@ bool ASTJsonConverter::visit(ContractDefinition const& _node) { Json::Value linearizedBaseContracts(Json::arrayValue); for (auto const& baseContract: _node.annotation().linearizedBaseContracts) - linearizedBaseContracts.append(baseContract->id()); + linearizedBaseContracts.append(Json::UInt64(baseContract->id())); addJsonNode(_node, "ContractDefinition", { make_pair("name", _node.name()), make_pair("isLibrary", _node.isLibrary()), |