Fix 32 bit builds.
diff --git a/miner.h b/miner.h
index 56c0d7b..7aad072 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 b2217b8..0abf36e 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;