Skip to content

Commit

Permalink
fix: typos in libsolidity/analysis/ (#15756)
Browse files Browse the repository at this point in the history
* Update NameAndTypeResolver.cpp

* Update ControlFlowAnalyzer.cpp
  • Loading branch information
leopardracer authored Jan 23, 2025
1 parent fe1794d commit e784244
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libsolidity/analysis/ControlFlowAnalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ void ControlFlowAnalyzer::checkUninitializedAccess(CFGNode const* _entry, CFGNod
bool propagateFrom(NodeInfo const& _entryNode)
{
size_t previousUnassignedVariablesAtEntry = unassignedVariablesAtEntry.size();
size_t previousUninitializedVariableAccessess = uninitializedVariableAccesses.size();
size_t previousUninitializedVariableAccesses = uninitializedVariableAccesses.size();
unassignedVariablesAtEntry += _entryNode.unassignedVariablesAtExit;
uninitializedVariableAccesses += _entryNode.uninitializedVariableAccesses;
return
unassignedVariablesAtEntry.size() > previousUnassignedVariablesAtEntry ||
uninitializedVariableAccesses.size() > previousUninitializedVariableAccessess
uninitializedVariableAccesses.size() > previousUninitializedVariableAccesses
;
}
};
Expand Down
2 changes: 1 addition & 1 deletion libsolidity/analysis/NameAndTypeResolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ void DeclarationRegistrationHelper::registerDeclaration(Declaration& _declaratio
);

// NOTE: We're registering the function outside of its scope(). This will only affect
// name lookups. An more general alternative would be to modify Scoper to simply assign it
// name lookups. A more general alternative would be to modify Scoper to simply assign it
// that scope in the first place, but this would complicate the AST traversal here, which
// currently assumes that scopes follow ScopeOpener nesting.
registerDeclaration(*m_scopes.at(quantifier->scope()), _declaration, nullptr, nullptr, false /* inactive */, m_errorReporter);
Expand Down

0 comments on commit e784244

Please sign in to comment.