1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Fix compilation warning on VC

This commit is contained in:
Matias Fontanini
2016-05-08 10:34:49 -07:00
parent 8cf367d68c
commit 732c665af5

View File

@@ -58,7 +58,6 @@ Timestamp Timestamp::current_time() {
#endif
}
Timestamp::Timestamp()
: timestamp_(0) {
@@ -74,7 +73,7 @@ Timestamp::Timestamp(uint64_t value)
}
Timestamp::seconds_type Timestamp::seconds() const {
return timestamp_ / MICROSECONDS_IN_SECOND;
return static_cast<seconds_type>(timestamp_ / MICROSECONDS_IN_SECOND);
}
Timestamp::microseconds_type Timestamp::microseconds() const {