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())
|
if (!declarations.empty())
|
||||||
// the special identifier exists itself, we should not allow that.
|
// the special identifier exists itself, we should not allow that.
|
||||||
return size_t(-1);
|
return size_t(-1);
|
||||||
string realName = _identifier.name.substr(0,
|
string realName = _identifier.name.substr(0, _identifier.name.size() - (
|
||||||
_identifier.name.size() - isSlot ?
|
isSlot ?
|
||||||
string("_slot").size() :
|
string("_slot").size() :
|
||||||
string("_offset").size()
|
string("_offset").size()
|
||||||
);
|
));
|
||||||
declarations = m_resolver.nameFromCurrentScope(realName);
|
declarations = m_resolver.nameFromCurrentScope(realName);
|
||||||
}
|
}
|
||||||
if (declarations.size() != 1)
|
if (declarations.size() != 1)
|
||||||
|
@ -599,7 +599,7 @@ bool ContractCompiler::visit(InlineAssembly const& _inlineAssembly)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
solAssert(false, "Invalid declaration type.");
|
solAssert(false, "Invalid declaration type.");
|
||||||
solAssert(_assembly.deposit() - depositBefore == ref->second.valueSize, "");
|
solAssert(_assembly.deposit() - depositBefore == int(ref->second.valueSize), "");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user