mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
Merge 6aa59496aa
into 2c92e5b5b3
This commit is contained in:
commit
40a78c543c
@ -27,6 +27,7 @@ using std::isnan;
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "Common/Logging/Log.h"
|
||||
#include "Common/StringUtil.h"
|
||||
#include "Core/Core.h"
|
||||
#include "Core/Debugger/Debugger_SymbolMap.h"
|
||||
#include "Core/PowerPC/MMU.h"
|
||||
@ -393,8 +394,9 @@ Expression::Expression(std::string_view text, ExprPointer ex, ExprVarListPointer
|
||||
"Expression: Sorted lookup should not contain duplicate keys.");
|
||||
for (auto* v = m_vars->head; v != nullptr; v = v->next)
|
||||
{
|
||||
const auto iter = std::ranges::lower_bound(sorted_lookup, v->name, {}, &LookupKV::first);
|
||||
if (iter != sorted_lookup.end() && iter->first == v->name)
|
||||
const auto iter = std::ranges::lower_bound(sorted_lookup, v->name,
|
||||
Common::CaseInsensitiveLess{}, &LookupKV::first);
|
||||
if (iter != sorted_lookup.end() && Common::CaseInsensitiveEquals(iter->first, v->name))
|
||||
m_binds.emplace_back(iter->second);
|
||||
else
|
||||
m_binds.emplace_back();
|
||||
|
Loading…
Reference in New Issue
Block a user