From b3dbe146ad8d92edd7c6b353df2492de5adceab0 Mon Sep 17 00:00:00 2001 From: troky Date: Tue, 28 Jan 2014 23:20:42 +0100 Subject: [PATCH] Fixed le25todouble() casting. Conflicts (resolved): sgminer.c --- sgminer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sgminer.c b/sgminer.c index 08697cd0..c8b2940a 100644 --- a/sgminer.c +++ b/sgminer.c @@ -2898,13 +2898,13 @@ static double le256todouble(const void *target) uint64_t *data64; double dcut64; - data64 = (uint64_t *)(target + 24); + data64 = (uint64_t *)((unsigned char *)target + 24); dcut64 = le64toh(*data64) * bits192; - data64 = (uint64_t *)(target + 16); + data64 = (uint64_t *)((unsigned char *)target + 16); dcut64 += le64toh(*data64) * bits128; - data64 = (uint64_t *)(target + 8); + data64 = (uint64_t *)((unsigned char *)target + 8); dcut64 += le64toh(*data64) * bits64; data64 = (uint64_t *)target;