From: Patrick Donnelly Date: Wed, 6 Feb 2019 17:42:27 +0000 (-0800) Subject: common/RefCountedObj: use type of nref X-Git-Tag: v15.1.0~2896^2~19 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a143be0273a865f60d1f49c74d1179a5d49d333c;p=ceph.git common/RefCountedObj: use type of nref "int" may narrow the ref count (although very unlikely!). Signed-off-by: Patrick Donnelly --- diff --git a/src/common/RefCountedObj.h b/src/common/RefCountedObj.h index 7596936a7c50..eebedf22c752 100644 --- a/src/common/RefCountedObj.h +++ b/src/common/RefCountedObj.h @@ -53,7 +53,7 @@ public: } void put() const { CephContext *local_cct = cct; - int v = --nref; + auto v = --nref; if (local_cct) lsubdout(local_cct, refs, 1) << "RefCountedObject::put " << this << " " << (v + 1) << " -> " << v