summaryrefslogtreecommitdiff
path: root/lib/parallel_scan.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/parallel_scan.h')
-rw-r--r--lib/parallel_scan.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/parallel_scan.h b/lib/parallel_scan.h
index f04d51b4..5a52e44e 100644
--- a/lib/parallel_scan.h
+++ b/lib/parallel_scan.h
@@ -35,8 +35,9 @@ bool operator<(const DirectoryKey& lhs, const DirectoryKey& rhs)
if (lhs.handleSymlinks_ != rhs.handleSymlinks_)
return lhs.handleSymlinks_ < rhs.handleSymlinks_;
- if (!EqualFilename()(lhs.dirnameFull_, rhs.dirnameFull_))
- return LessFilename()(lhs.dirnameFull_, rhs.dirnameFull_);
+ const int cmpName = cmpFileName(lhs.dirnameFull_, rhs.dirnameFull_);
+ if (cmpName != 0)
+ return cmpName < 0;
return *lhs.filter_ < *rhs.filter_;
}
bgstack15