summaryrefslogtreecommitdiff
path: root/src/buffer.cc
diff options
context:
space:
mode:
authorFrank LENORMAND <lenormf@gmail.com>2016-07-26 09:43:41 +0300
committerFrank LENORMAND <lenormf@gmail.com>2016-07-26 09:43:41 +0300
commitf8224b138412886642d15e464b3aa94f702d3baa (patch)
treebc1041b4a0adcecebae62fb7d71a52d9bbbc80a7 /src/buffer.cc
parent8c05d9e1464c6f6ddbe4d597942c720e9c27c26b (diff)
Use explicit initialization of the `timespec` object to fix compilation on older compilers
Diffstat (limited to 'src/buffer.cc')
-rw-r--r--src/buffer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.cc b/src/buffer.cc
index ec970676..45834f3c 100644
--- a/src/buffer.cc
+++ b/src/buffer.cc
@@ -71,7 +71,7 @@ Buffer::Buffer(String name, Flags flags, StringView data,
m_flags{flags | Flags::NoUndo},
m_history{m_next_history_id++, nullptr}, m_history_cursor{&m_history},
m_last_save_history_cursor{&m_history},
- m_fs_timestamp{fs_timestamp}
+ m_fs_timestamp{fs_timestamp.tv_sec, fs_timestamp.tv_nsec}
{
ParsedLines parsed_lines = parse_lines(data);