libsolc: change return type of compile to non-const

This commit is contained in:
Alex Beregszaszi
2019-12-12 11:26:16 +00:00
parent 2ccf3ea4ab
commit 6e6bc9904f
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ bool containsError(Json::Value const& _compilerResult, string const& _type, stri
Json::Value compile(string const& _input, CStyleReadFileCallback _callback = nullptr)
{
const char* output_ptr = solidity_compile(_input.c_str(), _callback, nullptr);
char* output_ptr = solidity_compile(_input.c_str(), _callback, nullptr);
string output(output_ptr);
solidity_free(output_ptr);
solidity_reset();