diff options
author | Matías Aereal Aeón <aereal@gmail.com> | 2018-08-08 22:26:30 +0800 |
---|---|---|
committer | Matías Aereal Aeón <aereal@gmail.com> | 2018-08-08 22:26:30 +0800 |
commit | e902ce1aa02dc5d19cc9dd231fa538646884826d (patch) | |
tree | bdac717d124e725679929c722cfe2c752cc90dd9 /libsolidity/inlineasm | |
parent | 7dae58cbcc3df64e6add31020a7f44de1b28b3de (diff) | |
download | dexon-solidity-e902ce1aa02dc5d19cc9dd231fa538646884826d.tar dexon-solidity-e902ce1aa02dc5d19cc9dd231fa538646884826d.tar.gz dexon-solidity-e902ce1aa02dc5d19cc9dd231fa538646884826d.tar.bz2 dexon-solidity-e902ce1aa02dc5d19cc9dd231fa538646884826d.tar.lz dexon-solidity-e902ce1aa02dc5d19cc9dd231fa538646884826d.tar.xz dexon-solidity-e902ce1aa02dc5d19cc9dd231fa538646884826d.tar.zst dexon-solidity-e902ce1aa02dc5d19cc9dd231fa538646884826d.zip |
Removing std:: from std::to_string and include for boost/lexical_cast
Diffstat (limited to 'libsolidity/inlineasm')
-rw-r--r-- | libsolidity/inlineasm/AsmAnalysis.cpp | 10 | ||||
-rw-r--r-- | libsolidity/inlineasm/AsmParser.cpp | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/libsolidity/inlineasm/AsmAnalysis.cpp b/libsolidity/inlineasm/AsmAnalysis.cpp index 97e1023b..011ca4dc 100644 --- a/libsolidity/inlineasm/AsmAnalysis.cpp +++ b/libsolidity/inlineasm/AsmAnalysis.cpp @@ -85,7 +85,7 @@ bool AsmAnalyzer::operator()(assembly::Literal const& _literal) { m_errorReporter.typeError( _literal.location, - "String literal too long (" + std::to_string(_literal.value.size()) + " > 32)" + "String literal too long (" + to_string(_literal.value.size()) + " > 32)" ); return false; } @@ -185,7 +185,7 @@ bool AsmAnalyzer::operator()(assembly::ExpressionStatement const& _statement) Error::Type errorType = m_flavour == AsmFlavour::Loose ? *m_errorTypeForLoose : Error::Type::TypeError; string msg = "Top-level expressions are not supposed to return values (this expression returns " + - std::to_string(m_stackHeight - initialStackHeight) + + to_string(m_stackHeight - initialStackHeight) + " value" + (m_stackHeight - initialStackHeight == 1 ? "" : "s") + "). Use ``pop()`` or assign them."; @@ -322,8 +322,8 @@ bool AsmAnalyzer::operator()(assembly::FunctionCall const& _funCall) { m_errorReporter.typeError( _funCall.functionName.location, - "Expected " + std::to_string(arguments) + " arguments but got " + - std::to_string(_funCall.arguments.size()) + "." + "Expected " + to_string(arguments) + " arguments but got " + + to_string(_funCall.arguments.size()) + "." ); success = false; } @@ -477,7 +477,7 @@ bool AsmAnalyzer::expectDeposit(int _deposit, int _oldHeight, SourceLocation con m_errorReporter.typeError( _location, "Expected expression to return one item to the stack, but did return " + - std::to_string(m_stackHeight - _oldHeight) + + to_string(m_stackHeight - _oldHeight) + " items." ); return false; diff --git a/libsolidity/inlineasm/AsmParser.cpp b/libsolidity/inlineasm/AsmParser.cpp index 06f9a587..f34bbffe 100644 --- a/libsolidity/inlineasm/AsmParser.cpp +++ b/libsolidity/inlineasm/AsmParser.cpp @@ -279,7 +279,7 @@ assembly::Expression Parser::parseExpression() "Expected '(' (instruction \"" + instructionNames().at(instr.instruction) + "\" expects " + - std::to_string(args) + + to_string(args) + " arguments)" )); } @@ -502,7 +502,7 @@ assembly::Expression Parser::parseCall(Parser::ElementaryOperation&& _initialOp) "Expected expression (instruction \"" + instructionNames().at(instr) + "\" expects " + - std::to_string(args) + + to_string(args) + " arguments)" )); @@ -514,7 +514,7 @@ assembly::Expression Parser::parseCall(Parser::ElementaryOperation&& _initialOp) "Expected ',' (instruction \"" + instructionNames().at(instr) + "\" expects " + - std::to_string(args) + + to_string(args) + " arguments)" )); else @@ -527,7 +527,7 @@ assembly::Expression Parser::parseCall(Parser::ElementaryOperation&& _initialOp) "Expected ')' (instruction \"" + instructionNames().at(instr) + "\" expects " + - std::to_string(args) + + to_string(args) + " arguments)" )); expectToken(Token::RParen); |