From 1131c5035f37e3b4821dedb207e8d6acb5967a0d Mon Sep 17 00:00:00 2001 From: djudjuu Date: Mon, 22 May 2017 17:05:35 +0200 Subject: make src-indices equal (#2286) --- solc/CommandLineInterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp index 5c0b6d83..d21fccaa 100644 --- a/solc/CommandLineInterface.cpp +++ b/solc/CommandLineInterface.cpp @@ -894,7 +894,7 @@ void CommandLineInterface::handleAst(string const& _argStr) } else { - ASTJsonConverter(legacyFormat).print(data, m_compiler->ast(sourceCode.first)); + ASTJsonConverter(legacyFormat, m_compiler->sourceIndices()).print(data, m_compiler->ast(sourceCode.first)); postfix += "_json"; } boost::filesystem::path path(sourceCode.first); @@ -917,7 +917,7 @@ void CommandLineInterface::handleAst(string const& _argStr) printer.print(cout); } else - ASTJsonConverter(legacyFormat).print(cout, m_compiler->ast(sourceCode.first)); + ASTJsonConverter(legacyFormat, m_compiler->sourceIndices()).print(cout, m_compiler->ast(sourceCode.first)); } } } -- cgit