Browse Source

Merge branch 'bfgminer-2.8.x' into bfgminer-2.9.x

Luke Dashjr 13 years ago
parent
commit
44528934f0
1 changed files with 2 additions and 3 deletions
  1. 2 3
      util.c

+ 2 - 3
util.c

@@ -584,9 +584,8 @@ bool fulltest(const unsigned char *hash, const unsigned char *target)
 	swap256(target_swap, target);
 
 	for (i = 0; i < 32/4; i++) {
-		uint32_t h32tmp = swab32(hash32[i]);
-		uint32_t t32tmp = target32[i];
-
+		uint32_t h32tmp = htobe32(hash32[i]);
+		uint32_t t32tmp = htole32(target32[i]);
 		target32[i] = swab32(target32[i]);	/* for printing */
 
 		if (h32tmp > t32tmp) {