diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-03-30 16:49:21 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-03-30 16:49:21 -0700 |
commit | 3df60995e186a4284332474ed364e7643aff6f74 (patch) | |
tree | 46b375de33dd4ee79deae83b97eaaa17c70704aa /node | |
parent | 1a5e7cb0cb4366d22bfaa44361c1c8e3ed76c428 (diff) | |
download | infinitytier-3df60995e186a4284332474ed364e7643aff6f74.tar.gz infinitytier-3df60995e186a4284332474ed364e7643aff6f74.zip |
nit pick... might this matter?
Diffstat (limited to 'node')
-rw-r--r-- | node/Utils.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Utils.hpp b/node/Utils.hpp index 17c00459..3f4cc765 100644 --- a/node/Utils.hpp +++ b/node/Utils.hpp @@ -51,9 +51,9 @@ public: static inline bool secureEq(const void *a,const void *b,unsigned int len) throw() { - char diff = 0; + uint8_t diff = 0; for(unsigned int i=0;i<len;++i) - diff |= ( (reinterpret_cast<const char *>(a))[i] ^ (reinterpret_cast<const char *>(b))[i] ); + diff |= ( (reinterpret_cast<const uint8_t *>(a))[i] ^ (reinterpret_cast<const uint8_t *>(b))[i] ); return (diff == 0); } |