From: Kefu Chai Date: Wed, 19 May 2021 01:30:08 +0000 (+0800) Subject: include/rados/librados.h: use UINT64_C to define constants X-Git-Tag: v17.1.0~1908^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5549747255088bb1f1bf077bed5ebe6e06f2ea8c;p=ceph.git include/rados/librados.h: use UINT64_C to define constants UINT64_C add the appropriate suffix to literals, this is more readable than casting the literal to the expected type. Signed-off-by: Kefu Chai --- diff --git a/src/include/rados/librados.h b/src/include/rados/librados.h index 34cadf25b2651..31ef332403ce2 100644 --- a/src/include/rados/librados.h +++ b/src/include/rados/librados.h @@ -167,8 +167,8 @@ typedef enum { /* * snap id contants */ -#define LIBRADOS_SNAP_HEAD ((uint64_t)(-2)) -#define LIBRADOS_SNAP_DIR ((uint64_t)(-1)) +#define LIBRADOS_SNAP_HEAD UINT64_C(-2) +#define LIBRADOS_SNAP_DIR UINT64_C(-1) /** * @typedef rados_t