Merge pull request #7562 from ethereum/fix-signedness

Fixes signedness (causes compilation failure on MSVC).
This commit is contained in:
Mathias L. Baumann 2019-10-23 16:56:57 +02:00 committed by GitHub
commit 4e1b9d7f1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -769,7 +769,7 @@ bool ContractCompiler::visit(TryStatement const& _tryStatement)
CompilerContext::LocationSetter locationSetter(m_context, _tryStatement);
compileExpression(_tryStatement.externalCall());
unsigned returnSize = _tryStatement.externalCall().annotation().type->sizeOnStack();
int const returnSize = static_cast<int>(_tryStatement.externalCall().annotation().type->sizeOnStack());
// Stack: [ return values] <success flag>
eth::AssemblyItem successTag = m_context.appendConditionalJump();