From 5549747255088bb1f1bf077bed5ebe6e06f2ea8c Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 19 May 2021 09:30:08 +0800 Subject: [PATCH] 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 --- src/include/rados/librados.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/rados/librados.h b/src/include/rados/librados.h index 34cadf25b26..31ef332403c 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 -- 2.39.5