Browse Source

warning removal

Adam Ierymenko 5 years ago
parent
commit
ecd09946e6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      node/Fingerprint.hpp

+ 2 - 2
node/Fingerprint.hpp

@@ -39,7 +39,7 @@ public:
 
 	ZT_ALWAYS_INLINE void zero() noexcept
 	{
-		for(int i=0;i<(384 / (sizeof(unsigned long) * 8));++i)
+		for(unsigned int i=0;i<(384 / (sizeof(unsigned long) * 8));++i)
 			_h[i] = 0;
 	}
 
@@ -55,7 +55,7 @@ public:
 
 	ZT_ALWAYS_INLINE operator bool() const noexcept
 	{
-		for(int i=0;i<(384 / (sizeof(unsigned long) * 8));++i) {
+		for(unsigned int i=0;i<(384 / (sizeof(unsigned long) * 8));++i) {
 			if (_h[i] != 0)
 				return true;
 		}