summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-04-30 07:41:02 +1000
committerMaxime Coste <mawww@kakoune.org>2018-04-30 07:41:31 +1000
commit1fb53ca712de9deef5d79a53522dcd4be7a88ae7 (patch)
tree075c81f2b31695462698cfe0a2c747c1b8f5bc22 /src
parente4f90e5ed2645895576af4f13a6213e95d1bf605 (diff)
Fix wrong use of constexpr
Diffstat (limited to 'src')
-rw-r--r--src/regex_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regex_impl.cc b/src/regex_impl.cc
index e074f68b..bb3f6c09 100644
--- a/src/regex_impl.cc
+++ b/src/regex_impl.cc
@@ -907,7 +907,7 @@ private:
{
for (auto& range : character_class.ranges)
{
- constexpr auto clamp = [](Codepoint cp) { return std::min(CompiledRegex::StartDesc::count, cp); };
+ const auto clamp = [](Codepoint cp) { return std::min(CompiledRegex::StartDesc::count, cp); };
for (auto cp = clamp(range.min), end = clamp(range.max + 1); cp < end; ++cp)
start_desc.map[cp] = true;
if (range.max >= CompiledRegex::StartDesc::count)