From a16a0a8ce57990ec1d762bcbea83a613705e352e Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 19 Nov 2019 16:22:11 -0800 Subject: [PATCH] Warning removal. --- node/Address.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/node/Address.hpp b/node/Address.hpp index f5b2c9363..3cafe0925 100644 --- a/node/Address.hpp +++ b/node/Address.hpp @@ -105,7 +105,7 @@ public: /** * @return Hash code for use with Hashtable */ - ZT_ALWAYS_INLINE unsigned long hashCode() const { return reinterpret_cast(_a); } + ZT_ALWAYS_INLINE unsigned long hashCode() const { return (unsigned long)_a; } /** * @return Hexadecimal string @@ -134,9 +134,9 @@ public: */ ZT_ALWAYS_INLINE uint8_t operator[](unsigned int i) const { return (uint8_t)(_a >> (32 - (i * 8))); } - ZT_ALWAYS_INLINE operator unsigned int() const { return reinterpret_cast(_a); } - ZT_ALWAYS_INLINE operator unsigned long() const { return reinterpret_cast(_a); } - ZT_ALWAYS_INLINE operator unsigned long long() const { return reinterpret_cast(_a); } + ZT_ALWAYS_INLINE operator unsigned int() const { return (unsigned int)_a; } + ZT_ALWAYS_INLINE operator unsigned long() const { return (unsigned long)_a; } + ZT_ALWAYS_INLINE operator unsigned long long() const { return (unsigned long long)_a; } ZT_ALWAYS_INLINE void zero() { _a = 0; }