Fixed issue of non-termination when using 01/1970 (Unix epoch -> 0) as
ending point on Windows.

Thanks to @rofl0r for fixing it.
This commit is contained in:
wiire-a 2017-11-19 16:17:57 +01:00
parent 6082da892b
commit b8c4636d98

View File

@ -115,7 +115,7 @@ static void crack_thread_rtl(struct crack_job *j) {
seed--;
if (seed < j->start - SEEDS_PER_JOB_BLOCK) {
long long tmp = j->start - SEEDS_PER_JOB_BLOCK * job_control.jobs;
int64_t tmp = (int64_t)j->start - SEEDS_PER_JOB_BLOCK * job_control.jobs;
if (tmp < 0) break;
j->start = tmp;
seed = j->start;