Bit error in target calculation for stratum.
diff --git a/cgminer.c b/cgminer.c
index 6891b24..b1c2867 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4559,7 +4559,7 @@ static void gen_stratum_work(struct pool *pool, struct work *work)
int byte = j / 8;
int bit = j % 8;
- data8[byte] &= ~(8 >> bit);
+ data8[byte] &= ~(128 >> bit);
}
swab256(target, rtarget);
if (opt_debug) {