From c8ced5b1c4c4824594dba309e4914cfdd1c41441 Mon Sep 17 00:00:00 2001 From: Matthew Fioravante Date: Tue, 26 Oct 2021 22:25:44 -0400 Subject: [PATCH] Make Value created and modified index 64 bit --- etcd/Value.hpp | 8 ++++---- src/Value.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/etcd/Value.hpp b/etcd/Value.hpp index a6ff6d8..ce13e94 100644 --- a/etcd/Value.hpp +++ b/etcd/Value.hpp @@ -48,12 +48,12 @@ namespace etcd /** * Returns the creation index of this value. */ - int created_index() const; + int64_t created_index() const; /** * Returns the last modification's index of this value. */ - int modified_index() const; + int64_t modified_index() const; /** * Returns the ttl of this value or 0 if ttl is not set @@ -76,8 +76,8 @@ namespace etcd std::string _key; bool dir; std::string value; - int created; - int modified; + int64_t created; + int64_t modified; int _ttl; int64_t leaseId; }; diff --git a/src/Value.cpp b/src/Value.cpp index 8e58b73..41a5cde 100644 --- a/src/Value.cpp +++ b/src/Value.cpp @@ -50,12 +50,12 @@ std::string const & etcd::Value::as_string() const return value; } -int etcd::Value::created_index() const +int64_t etcd::Value::created_index() const { return created; } -int etcd::Value::modified_index() const +int64_t etcd::Value::modified_index() const { return modified; }