From 9950aa392774197ad6c244c61231231af5e129b6 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 4 Jul 2011 00:05:12 +1000 Subject: [PATCH] Fix 32 bit builds. --- miner.h | 2 +- sha256_cryptopp.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/miner.h b/miner.h index 56c0d7b4..7aad0721 100644 --- a/miner.h +++ b/miner.h @@ -182,7 +182,7 @@ extern bool scanhash_cryptopp(int, const unsigned char *midstate,unsigned char * extern bool scanhash_asm32(int, const unsigned char *midstate,unsigned char *data, unsigned char *hash1, unsigned char *hash, const unsigned char *target, - uint32_t max_nonce, unsigned long *hashes_done); + uint32_t max_nonce, unsigned long *hashes_done, uint32_t nonce); extern int scanhash_sse2_64(int, const unsigned char *pmidstate, unsigned char *pdata, unsigned char *phash1, unsigned char *phash, const unsigned char *ptarget, diff --git a/sha256_cryptopp.c b/sha256_cryptopp.c index b2217b8d..0abf36ed 100644 --- a/sha256_cryptopp.c +++ b/sha256_cryptopp.c @@ -582,11 +582,11 @@ bool scanhash_asm32(int thr_id, const unsigned char *midstate, unsigned char *data, unsigned char *hash1, unsigned char *hash, const unsigned char *target, - uint32_t max_nonce, unsigned long *hashes_done) + uint32_t max_nonce, unsigned long *hashes_done, + uint32_t n) { uint32_t *hash32 = (uint32_t *) hash; uint32_t *nonce = (uint32_t *)(data + 12); - uint32_t n = 0; unsigned long stat_ctr = 0; work_restart[thr_id].restart = 0;