From: James Page Date: Wed, 29 May 2019 04:54:37 +0000 (+0100) Subject: common: avoid use of size_t in options X-Git-Tag: v15.1.0~2611^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=58b0d514a67ce4f5c115f0f5451d1ac939b3702b;p=ceph-ci.git common: avoid use of size_t in options On 32 bit architectures size_t is not a 64 bit type which causes comparison/assignment mismatch failures during compilation - specifically in the handling of legacy configuration values with boost::variant records where size_t is not supported. Signed-off-by: James Page --- diff --git a/src/common/config_values.h b/src/common/config_values.h index de1661ad10b..0485824bead 100644 --- a/src/common/config_values.h +++ b/src/common/config_values.h @@ -50,7 +50,7 @@ public: #define OPTION_OPT_U32(name) uint64_t name; #define OPTION_OPT_U64(name) uint64_t name; #define OPTION_OPT_UUID(name) uuid_d name; -#define OPTION_OPT_SIZE(name) size_t name; +#define OPTION_OPT_SIZE(name) uint64_t name; #define OPTION(name, ty) \ public: \ OPTION_##ty(name)