From 9f8c2620da10aa6dc3ab92de2b4aba7a9aa53be4 Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 29 Jan 2015 19:32:32 +0100 Subject: Whitespace and error messages. --- ExpressionCompiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ExpressionCompiler.cpp') diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp index 2b299011..db71b51d 100644 --- a/ExpressionCompiler.cpp +++ b/ExpressionCompiler.cpp @@ -322,7 +322,7 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall) } unsigned length = appendExpressionCopyToMemory(*function.getParameterTypes().front(), *arguments.front()); - solAssert(length == 32, "Log data should have length 32."); + solAssert(length == 32, "Log data should be 32 bytes long (for now)."); m_context << u256(length) << u256(0) << eth::logInstruction(logNumber); break; } @@ -487,7 +487,7 @@ bool ExpressionCompiler::visit(IndexAccess const& _indexAccess) TypePointer const& keyType = dynamic_cast(*_indexAccess.getBaseExpression().getType()).getKeyType(); unsigned length = appendExpressionCopyToMemory(*keyType, _indexAccess.getIndexExpression()); - solAssert(length == 32, "Mapping key length in memory has to be 32."); + solAssert(length == 32, "Mapping key has to take 32 bytes in memory (for now)."); // @todo move this once we actually use memory length += CompilerUtils(m_context).storeInMemory(length); m_context << u256(length) << u256(0) << eth::Instruction::SHA3; -- cgit