summaryrefslogtreecommitdiff
path: root/src/regex_impl.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-10-08 12:19:14 +0800
committerMaxime Coste <mawww@kakoune.org>2017-11-01 14:05:14 +0800
commitea85f79384c3550ecbb168ba591ae62fb75fac01 (patch)
treeca5a8b0e77a521c6f3d4f504a23b5de217310707 /src/regex_impl.hh
parentbf3b50a5431916b928a68cc8ba96d7c2b7aa7c92 (diff)
Regex: add elided braces to fix compilation on older gcc
Diffstat (limited to 'src/regex_impl.hh')
-rw-r--r--src/regex_impl.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regex_impl.hh b/src/regex_impl.hh
index 27f6d0e3..5a294400 100644
--- a/src/regex_impl.hh
+++ b/src/regex_impl.hh
@@ -198,7 +198,7 @@ private:
}
void* ptr = ::operator new (sizeof(Saves) + (count-1) * sizeof(Iterator));
- Saves* saves = new (ptr) Saves{1, copy ? pos[0] : Iterator{}};
+ Saves* saves = new (ptr) Saves{1, {copy ? pos[0] : Iterator{}}};
for (size_t i = 1; i < count; ++i)
new (&saves->pos[i]) Iterator{copy ? pos[i] : Iterator{}};
m_saves.push_back(saves);