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; }