Browse Source

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

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

+ 2 - 0
driver-icarus.c

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