Browse Source

Merge commit '6d4e4eb' into bfgminer-4.10.x

Luke Dashjr 11 years ago
parent
commit
3b3b973d9e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      util.h

+ 1 - 1
util.h

@@ -465,7 +465,7 @@ void pk_u64le(void * const bufp, const int offset, const uint64_t nv)
 }while(0)
 
 #define is_power_of_two(n)  \
-	(0 == ((n) && ((n) - 1)))
+	(0 == ((n) & ((n) - 1)))
 
 static inline
 uint32_t upper_power_of_two_u32(uint32_t n)