diff options
author | Pierre Langlois <pierre.langlois@arm.com> | 2015-03-09 16:52:45 +0000 |
---|---|---|
committer | Pierre Langlois <pierre.langlois@arm.com> | 2016-03-04 17:48:55 +0000 |
commit | 0bd39b8c787c60c89f71d832b4ed342bd2aede78 (patch) | |
tree | 31b7ef669bd3f5f4aee2677fcf0dffe251104813 | |
parent | 2c1edebe30ee9e202e495c88eb31b29a54d05b01 (diff) | |
download | kdbinder-0bd39b8c787c60c89f71d832b4ed342bd2aede78.tar.gz |
libkdbinder: kdbus: initialize enum with UINT64_C
Change-Id: I2ddfd0cf23e20fa24faa9bae6ee3c9b985f6aa29
-rw-r--r-- | include/kdbinder/kdbus/connection.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/include/kdbinder/kdbus/connection.h b/include/kdbinder/kdbus/connection.h index ef5f219..83ee5cc 100644 --- a/include/kdbinder/kdbus/connection.h +++ b/include/kdbinder/kdbus/connection.h @@ -28,6 +28,7 @@ #include <string> #include <memory> #include <cstdio> +#include <cstdint> namespace android { namespace kdbus { @@ -78,16 +79,16 @@ struct DataReply : Reply { class Connection { public: enum NameFlags { - ReplaceExisting = 1ULL << 0, - AllowReplacement = 1ULL << 1, - Queue = 1ULL << 2, - InQueue = 1ULL << 3, + ReplaceExisting = UINT64_C(1 << 0), + AllowReplacement = UINT64_C(1 << 1), + Queue = UINT64_C(1 << 2), + InQueue = UINT64_C(1 << 3), }; enum NameListFlags { - Unique = 1ULL << 0, - Names = 1ULL << 1, - Queued = 1ULL << 3, + Unique = UINT64_C(1ULL << 0), + Names = UINT64_C(1ULL << 1), + Queued = UINT64_C(1ULL << 3), }; static std::unique_ptr<Connection> hello(const Bus& bus, |