]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
fix the type of _size in class interval_set, int64_t -> uint64_t
authorlishuhao <lishuhao@unitedstack.com>
Sun, 14 Apr 2019 12:35:02 +0000 (20:35 +0800)
committerletterwuyu <lishuhao@unitedstack.com>
Mon, 6 May 2019 12:17:43 +0000 (20:17 +0800)
Signed-off-by: Ning Yao <yaoning@unitedstack.com>
Signed-off-by: lishuhao <lishuhao@unitedstack.com>
src/include/interval_set.h

index dcb1a0a7d33d6bbe66b3272cc9448cbb2929decb..6b6237d7cf7cdf4117efb3ac935d42009eb2f086 100644 (file)
@@ -331,7 +331,7 @@ class interval_set {
     return _size == other._size && m == other.m;
   }
 
-  int64_t size() const {
+  uint64_t size() const {
     return _size;
   }
 
@@ -726,7 +726,7 @@ class interval_set {
 
 private:
   // data
-  int64_t _size;
+  uint64_t _size;
   Map m;   // map start -> len
 };