Browse Source

Merge commit '24f06e2' into bfgminer

Luke Dashjr 13 years ago
parent
commit
901357177b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      sha256_cryptopp.c

+ 2 - 1
sha256_cryptopp.c

@@ -587,7 +587,6 @@ bool scanhash_asm32(struct thr_info*thr, const unsigned char *midstate,
 	data += 64;
 
 	while (1) {
-		n++;
 		*nonce = n;
 
 		runhash32(hash1, data, midstate);
@@ -602,6 +601,8 @@ bool scanhash_asm32(struct thr_info*thr, const unsigned char *midstate,
 			*last_nonce = n;
 			return false;
 		}
+
+		++n;
 	}
 }