diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2019-03-12 13:28:04 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2019-03-12 13:28:04 +0100 |
commit | afb539ae5a77c8d9d5c87a312ba9f103a10c6260 (patch) | |
tree | d93698f8bcf58e0e98768a353de9a80760fec0b1 /fastos | |
parent | 20cd638efd54d991d347bbd4ff7eae52d44b624d (diff) |
Use fundamental types in fastos::TimeStamp constructor.
Diffstat (limited to 'fastos')
-rw-r--r-- | fastos/src/vespa/fastos/timestamp.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/fastos/src/vespa/fastos/timestamp.h b/fastos/src/vespa/fastos/timestamp.h index 55cc40287e0..06bf7af922c 100644 --- a/fastos/src/vespa/fastos/timestamp.h +++ b/fastos/src/vespa/fastos/timestamp.h @@ -29,10 +29,12 @@ public: TimeStamp() : _time(0) { } TimeStamp(const timeval & tv) : _time(tv.tv_sec*SEC + tv.tv_usec*MILLI) { } TimeStamp(Special s) : _time(std::numeric_limits<TimeT>::max()) { (void) s; } - TimeStamp(TimeT v) : _time(v) { } - TimeStamp(int32_t v) : _time(v) { } - TimeStamp(uint32_t v) : _time(v) { } - TimeStamp(uint64_t v) : _time(v) { } + TimeStamp(int v) : _time(v) { } + TimeStamp(unsigned int v) : _time(v) { } + TimeStamp(long v) : _time(v) { } + TimeStamp(unsigned long v) : _time(v) { } + TimeStamp(long long v) : _time(v) { } + TimeStamp(unsigned long long v) : _time(v) { } TimeStamp(Seconds v) : _time(v.val()) { } TimeT val() const { return _time; } operator TimeT () const { return val(); } |