summaryrefslogtreecommitdiff
path: root/src/buffer.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-02-06 23:22:17 +0000
committerMaxime Coste <frrrwww@gmail.com>2015-02-06 23:22:17 +0000
commit5b6b04ef9cda82808de6f7a25fa1461aa6f81f45 (patch)
treec7f3055568384f2532b22f417c1dc6fbf633fd1e /src/buffer.cc
parentf7b8215a6872985df43a03c376550fd16a9188b4 (diff)
parent240a0043548f95b9f71f9914943e3c0588f405e2 (diff)
Merge remote-tracking branch 'jjthrash/not-warnings'
Diffstat (limited to 'src/buffer.cc')
-rw-r--r--src/buffer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.cc b/src/buffer.cc
index a14979dd..8706188e 100644
--- a/src/buffer.cc
+++ b/src/buffer.cc
@@ -32,7 +32,7 @@ Buffer::Buffer(String name, Flags flags, BufferLines lines,
for (auto& line : lines)
{
- kak_assert(not line->length == 0 and line->data()[line->length-1] == '\n');
+ kak_assert(not (line->length == 0) and line->data()[line->length-1] == '\n');
}
static_cast<BufferLines&>(m_lines) = std::move(lines);
@@ -174,7 +174,7 @@ void Buffer::reload(BufferLines lines, time_t fs_timestamp)
for (size_t l = 0; l < lines.size(); ++l)
{
auto& line = lines[l];
- kak_assert(not line->length == 0 and line->data()[line->length-1] == '\n');
+ kak_assert(not (line->length == 0) and line->data()[line->length-1] == '\n');
if (not (m_flags & Flags::NoUndo))
m_current_undo_group.emplace_back(
Modification::Insert, LineCount{(int)l}, SharedString{line});