mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Build fix.
This commit is contained in:
parent
478f2997ea
commit
978884d9ca
@ -176,11 +176,11 @@ bool ReferencesResolver::visit(InlineAssembly const& _inlineAssembly)
|
||||
if (!declarations.empty())
|
||||
// the special identifier exists itself, we should not allow that.
|
||||
return size_t(-1);
|
||||
string realName = _identifier.name.substr(0,
|
||||
_identifier.name.size() - isSlot ?
|
||||
string realName = _identifier.name.substr(0, _identifier.name.size() - (
|
||||
isSlot ?
|
||||
string("_slot").size() :
|
||||
string("_offset").size()
|
||||
);
|
||||
));
|
||||
declarations = m_resolver.nameFromCurrentScope(realName);
|
||||
}
|
||||
if (declarations.size() != 1)
|
||||
|
@ -599,7 +599,7 @@ bool ContractCompiler::visit(InlineAssembly const& _inlineAssembly)
|
||||
}
|
||||
else
|
||||
solAssert(false, "Invalid declaration type.");
|
||||
solAssert(_assembly.deposit() - depositBefore == ref->second.valueSize, "");
|
||||
solAssert(_assembly.deposit() - depositBefore == int(ref->second.valueSize), "");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user