Browse Source

Merge commit '8ca90b0' into bfgminer-3.10.x

Luke Dashjr 11 years ago
parent
commit
0cc938bc89
1 changed files with 2 additions and 0 deletions
  1. 2 0
      driver-icarus.c

+ 2 - 0
driver-icarus.c

@@ -1150,6 +1150,8 @@ keepwaiting:
 		// complete it can't have done more than a full nonce
 		// complete it can't have done more than a full nonce
 		if (unlikely(estimate_hashes > 0xffffffff))
 		if (unlikely(estimate_hashes > 0xffffffff))
 			estimate_hashes = 0xffffffff;
 			estimate_hashes = 0xffffffff;
+		if (unlikely(estimate_hashes < 0))
+			estimate_hashes = 0;
 
 
 		applog(LOG_DEBUG, "%"PRIpreprv" no nonce = 0x%08"PRIx64" hashes (%"PRId64".%06lus)",
 		applog(LOG_DEBUG, "%"PRIpreprv" no nonce = 0x%08"PRIx64" hashes (%"PRId64".%06lus)",
 		       icarus->proc_repr,
 		       icarus->proc_repr,