Commit 41d5813d8f169e88057b747fac7cebd2a6a1022a

Con Kolivas 2012-05-03T15:37:29

Convert hashes to an unsigned long long as well.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index ddf0ebb..6ebfbc4 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -3695,7 +3695,7 @@ void *miner_thread(void *userdata)
 	struct timeval diff, sdiff, wdiff;
 	uint32_t max_nonce = api->can_limit_work ? api->can_limit_work(mythr) : 0xffffffff;
 	unsigned long long hashes_done = 0;
-	uint32_t hashes;
+	unsigned long long hashes;
 	struct work *work = make_work();
 	unsigned const int request_interval = opt_scantime * 2 / 3 ? : 1;
 	unsigned const long request_nonce = MAXTHREADS / 3 * 2;