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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user