diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-04-25 17:36:19 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2016-04-25 17:36:19 +0300 |
commit | 9dfb45148670f712f6d3cf7f5000a4b4e393d83d (patch) | |
tree | cd70f5183172c45821b04d256e7f875525578692 /butl | |
parent | 7d75dc6b474c33c8b20407aa37a33932cbf35620 (diff) |
Fix timestamp from_string() compilation error appeared when compiled with clang++ and libc++0.3.0
Diffstat (limited to 'butl')
-rw-r--r-- | butl/timestamp.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/butl/timestamp.cxx b/butl/timestamp.cxx index 0da9f4c..41dc5ba 100644 --- a/butl/timestamp.cxx +++ b/butl/timestamp.cxx @@ -537,6 +537,7 @@ namespace butl if (time == -1) throw system_error (errno, system_category ()); - return timestamp::clock::from_time_t (time) + t.second; + return timestamp::clock::from_time_t (time) + + chrono::duration_cast<duration> (t.second); } } |