Skip to content

Commit e784244

Browse files
author
leopardracer
authored
fix: typos in libsolidity/analysis/ (#15756)
* Update NameAndTypeResolver.cpp * Update ControlFlowAnalyzer.cpp
1 parent fe1794d commit e784244

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libsolidity/analysis/ControlFlowAnalyzer.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ void ControlFlowAnalyzer::checkUninitializedAccess(CFGNode const* _entry, CFGNod
7474
bool propagateFrom(NodeInfo const& _entryNode)
7575
{
7676
size_t previousUnassignedVariablesAtEntry = unassignedVariablesAtEntry.size();
77-
size_t previousUninitializedVariableAccessess = uninitializedVariableAccesses.size();
77+
size_t previousUninitializedVariableAccesses = uninitializedVariableAccesses.size();
7878
unassignedVariablesAtEntry += _entryNode.unassignedVariablesAtExit;
7979
uninitializedVariableAccesses += _entryNode.uninitializedVariableAccesses;
8080
return
8181
unassignedVariablesAtEntry.size() > previousUnassignedVariablesAtEntry ||
82-
uninitializedVariableAccesses.size() > previousUninitializedVariableAccessess
82+
uninitializedVariableAccesses.size() > previousUninitializedVariableAccesses
8383
;
8484
}
8585
};

libsolidity/analysis/NameAndTypeResolver.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ void DeclarationRegistrationHelper::registerDeclaration(Declaration& _declaratio
716716
);
717717

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

0 commit comments

Comments
 (0)