aboutsummaryrefslogtreecommitdiff
path: root/butl
diff options
context:
space:
mode:
Diffstat (limited to 'butl')
-rw-r--r--butl/timestamp.cxx3
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);
}
}