diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2021-06-25 12:08:18 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-25 12:08:18 -0400 |
| commit | 962a660aa313ead6511fced0b656efa9a94fa442 (patch) | |
| tree | 46044b2b7a301b47c63f9dda63b0c81b7e924f69 /source/slang | |
| parent | 542741143b69c248ab457d1f767b0895430e9f90 (diff) | |
Small fixes to make compile on CentOS (#1897)
* Fix CentOS/gcc compile issue.
Diffstat (limited to 'source/slang')
| -rw-r--r-- | source/slang/slang-doc-extractor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-doc-extractor.cpp b/source/slang/slang-doc-extractor.cpp index 97667140e..0677e2af4 100644 --- a/source/slang/slang-doc-extractor.cpp +++ b/source/slang/slang-doc-extractor.cpp @@ -750,7 +750,7 @@ SlangResult DocMarkupExtractor::extract(const SearchItemInput* inputs, Index inp } // Sort them into loc order - entries.sort([](Entry& a, Entry& b) { return a.locOrOffset < b.locOrOffset; }); + entries.sort([](const Entry& a, const Entry& b) -> bool { return a.locOrOffset < b.locOrOffset; }); { SourceView* sourceView = nullptr; @@ -789,7 +789,7 @@ SlangResult DocMarkupExtractor::extract(const SearchItemInput* inputs, Index inp } // Sort into view/file and then offset order - entries.sort([](Entry& a, Entry& b) { return (a.viewIndex < b.viewIndex) || ((a.viewIndex == b.viewIndex) && a.locOrOffset < b.locOrOffset); }); + entries.sort([](const Entry& a, const Entry& b) -> bool { return (a.viewIndex < b.viewIndex) || ((a.viewIndex == b.viewIndex) && a.locOrOffset < b.locOrOffset); }); } { |
