From 732c665af5713899c727901759786eef61072e02 Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Sun, 8 May 2016 10:34:49 -0700 Subject: [PATCH] Fix compilation warning on VC --- src/timestamp.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/timestamp.cpp b/src/timestamp.cpp index 0da6af6..5a4dbda 100644 --- a/src/timestamp.cpp +++ b/src/timestamp.cpp @@ -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(timestamp_ / MICROSECONDS_IN_SECOND); } Timestamp::microseconds_type Timestamp::microseconds() const {