Fixed crashes on 32bit Windows

This commit is contained in:
BenDr0id 2018-04-19 17:19:23 +02:00
parent 581cf9794d
commit 8b6c062c90
4 changed files with 3 additions and 13 deletions

View file

@ -105,7 +105,7 @@ private:
int m_id;
int m_retryPause;
int64_t m_failures;
int64_t m_jobs;
uint64_t m_jobs;
Job m_job;
size_t m_recvBufPos;
static int64_t m_sequence;

View file

@ -96,11 +96,6 @@ bool Job::setBlob(const char *blob)
m_nicehash = true;
}
# ifdef XMRIG_PROXY_PROJECT
memset(m_rawBlob, 0, sizeof(m_rawBlob));
memcpy(m_rawBlob, blob, m_size * 2);
# endif
return true;
}
@ -137,11 +132,6 @@ bool Job::setTarget(const char *target)
return false;
}
# ifdef XMRIG_PROXY_PROJECT
memset(m_rawTarget, 0, sizeof(m_rawTarget));
memcpy(m_rawTarget, target, len);
# endif
m_diff = toDiff(m_target);
return true;
}

View file

@ -157,7 +157,7 @@ void DonateStrategy::onResultAccepted(Client *client, const SubmitResult &result
}
void DonateStrategy::idle(int64_t timeout)
void DonateStrategy::idle(uint64_t timeout)
{
uv_timer_start(&m_timer, DonateStrategy::onTimer, timeout, 0);
}

View file

@ -58,7 +58,7 @@ protected:
void onResultAccepted(Client *client, const SubmitResult &result, const char *error) override;
private:
void idle(int64_t timeout);
void idle(uint64_t timeout);
void suspend();
static void onTimer(uv_timer_t *handle);