diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-11-18 13:01:45 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-11-18 13:01:45 -0800 |
commit | 25f9c294dc677576ded51025b2c7e6397bdc11c0 (patch) | |
tree | 1dafb6ceea86828f998704e4205b35bda7dd135d /node | |
parent | 2ea9f516e121ea6eb344a8d180a739a1d707aecb (diff) | |
download | infinitytier-25f9c294dc677576ded51025b2c7e6397bdc11c0.tar.gz infinitytier-25f9c294dc677576ded51025b2c7e6397bdc11c0.zip |
Small bug fix and warning removal.
Diffstat (limited to 'node')
-rw-r--r-- | node/InetAddress.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/InetAddress.hpp b/node/InetAddress.hpp index 1dff710d..c37fa621 100644 --- a/node/InetAddress.hpp +++ b/node/InetAddress.hpp @@ -427,7 +427,7 @@ struct InetAddress : public sockaddr_storage } else { unsigned long tmp = reinterpret_cast<const struct sockaddr_in6 *>(this)->sin6_port; const uint8_t *a = reinterpret_cast<const uint8_t *>(this); - for(long i=0;i<sizeof(InetAddress);++i) + for(long i=0;i<(long)sizeof(InetAddress);++i) reinterpret_cast<uint8_t *>(&tmp)[i % sizeof(tmp)] ^= a[i]; return tmp; } |