From a110dc0f7c14c40a71f2e38955163e11acd86bc0 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Fri, 9 Jan 2015 21:50:43 -0800 Subject: [PATCH] Fix narrowing-conversion werrors from Clang --- .../pnNetProtocol/Private/pnNpCommon.h | 66 +++++++++---------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/Sources/Plasma/NucleusLib/pnNetProtocol/Private/pnNpCommon.h b/Sources/Plasma/NucleusLib/pnNetProtocol/Private/pnNpCommon.h index 1ffdeaa4..a16328a6 100644 --- a/Sources/Plasma/NucleusLib/pnNetProtocol/Private/pnNpCommon.h +++ b/Sources/Plasma/NucleusLib/pnNetProtocol/Private/pnNpCommon.h @@ -156,40 +156,40 @@ struct NetGameRank { class NetVaultNode : public hsRefCnt { protected: - enum NodeFields + enum NodeFields : uint32_t { - kNodeId = (1 << 0), - kCreateTime = (1 << 1), - kModifyTime = (1 << 2), - kCreateAgeName = (1 << 3), - kCreateAgeUuid = (1 << 4), - kCreatorAcct = (1 << 5), - kCreatorId = (1 << 6), - kNodeType = (1 << 7), - kInt32_1 = (1 << 8), - kInt32_2 = (1 << 9), - kInt32_3 = (1 << 10), - kInt32_4 = (1 << 11), - kUInt32_1 = (1 << 12), - kUInt32_2 = (1 << 13), - kUInt32_3 = (1 << 14), - kUInt32_4 = (1 << 15), - kUuid_1 = (1 << 16), - kUuid_2 = (1 << 17), - kUuid_3 = (1 << 18), - kUuid_4 = (1 << 19), - kString64_1 = (1 << 20), - kString64_2 = (1 << 21), - kString64_3 = (1 << 22), - kString64_4 = (1 << 23), - kString64_5 = (1 << 24), - kString64_6 = (1 << 25), - kIString64_1 = (1 << 26), - kIString64_2 = (1 << 27), - kText_1 = (1 << 28), - kText_2 = (1 << 29), - kBlob_1 = (1 << 30), - kBlob_2 = (1 << 31), + kNodeId = (1u << 0), + kCreateTime = (1u << 1), + kModifyTime = (1u << 2), + kCreateAgeName = (1u << 3), + kCreateAgeUuid = (1u << 4), + kCreatorAcct = (1u << 5), + kCreatorId = (1u << 6), + kNodeType = (1u << 7), + kInt32_1 = (1u << 8), + kInt32_2 = (1u << 9), + kInt32_3 = (1u << 10), + kInt32_4 = (1u << 11), + kUInt32_1 = (1u << 12), + kUInt32_2 = (1u << 13), + kUInt32_3 = (1u << 14), + kUInt32_4 = (1u << 15), + kUuid_1 = (1u << 16), + kUuid_2 = (1u << 17), + kUuid_3 = (1u << 18), + kUuid_4 = (1u << 19), + kString64_1 = (1u << 20), + kString64_2 = (1u << 21), + kString64_3 = (1u << 22), + kString64_4 = (1u << 23), + kString64_5 = (1u << 24), + kString64_6 = (1u << 25), + kIString64_1 = (1u << 26), + kIString64_2 = (1u << 27), + kText_1 = (1u << 28), + kText_2 = (1u << 29), + kBlob_1 = (1u << 30), + kBlob_2 = (1u << 31), kValidFields = (kNodeId | kCreateTime | kModifyTime | kCreateAgeName | kCreateAgeUuid | kCreatorAcct | kCreatorId | kNodeType | kInt32_1 | kInt32_2 | kInt32_3 |