mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 20:43:44 +02:00
nit pick... might this matter?
This commit is contained in:
parent
1a5e7cb0cb
commit
3df60995e1
1 changed files with 2 additions and 2 deletions
|
@ -51,9 +51,9 @@ public:
|
||||||
static inline bool secureEq(const void *a,const void *b,unsigned int len)
|
static inline bool secureEq(const void *a,const void *b,unsigned int len)
|
||||||
throw()
|
throw()
|
||||||
{
|
{
|
||||||
char diff = 0;
|
uint8_t diff = 0;
|
||||||
for(unsigned int i=0;i<len;++i)
|
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);
|
return (diff == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue