aboutsummaryrefslogtreecommitdiff
path: root/source/Core/SearchFilter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Core/SearchFilter.cpp')
-rw-r--r--source/Core/SearchFilter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Core/SearchFilter.cpp b/source/Core/SearchFilter.cpp
index 54937c0afeca..64b5a838d3de 100644
--- a/source/Core/SearchFilter.cpp
+++ b/source/Core/SearchFilter.cpp
@@ -361,7 +361,7 @@ bool
SearchFilterByModule::ModulePasses (const FileSpec &spec)
{
// Do a full match only if "spec" has a directory
- const bool full_match = spec.GetDirectory();
+ const bool full_match = (bool)spec.GetDirectory();
return FileSpec::Equal(spec, m_module_spec, full_match);
}
@@ -409,7 +409,7 @@ SearchFilterByModule::Search (Searcher &searcher)
for (size_t i = 0; i < num_modules; i++)
{
Module* module = target_modules.GetModulePointerAtIndexUnlocked(i);
- const bool full_match = m_module_spec.GetDirectory();
+ const bool full_match = (bool)m_module_spec.GetDirectory();
if (FileSpec::Equal (m_module_spec, module->GetFileSpec(), full_match))
{
SymbolContext matchingContext(m_target_sp, module->shared_from_this());