Warning removal.

This commit is contained in:
Adam Ierymenko 2019-11-19 16:22:11 -08:00
parent 47b4efd49b
commit a16a0a8ce5
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3

View file

@ -105,7 +105,7 @@ public:
/**
* @return Hash code for use with Hashtable
*/
ZT_ALWAYS_INLINE unsigned long hashCode() const { return reinterpret_cast<unsigned long>(_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<unsigned int>(_a); }
ZT_ALWAYS_INLINE operator unsigned long() const { return reinterpret_cast<unsigned long>(_a); }
ZT_ALWAYS_INLINE operator unsigned long long() const { return reinterpret_cast<unsigned long long>(_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; }