Commit ecaa9ee90f5fb55f2d98d9b110a58c10e9a1267a

Con Kolivas 2014-01-25T14:50:36

No point casting a double to a uint64

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-hashfast.c b/driver-hashfast.c
index cc8088e..b98ac33 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -706,7 +706,7 @@ static void hfa_parse_nonce(struct thr_info *thr, struct cgpu_info *hashfast,
 			       hashfast->device_id, n->sequence, n->nonce, n->ntime & HF_NTIME_MASK);
 			if (submit_noffset_nonce(thr, work, n->nonce, n->ntime & HF_NTIME_MASK)) {
 				mutex_lock(&info->lock);
-				info->hash_count += 0xffffffffull * (uint64_t)work->work_difficulty;
+				info->hash_count += 0xffffffffull * work->work_difficulty;
 				mutex_unlock(&info->lock);
 			}
 #if 0	/* Not used */