--- a/src/PasswordCracker.cc 2021-04-18 23:56:17.000000000 +0200 +++ b/src/PasswordCracker.cc 2021-12-18 02:44:51.013572242 +0100 @@ -58,7 +58,7 @@ // Add n worker threads // A part must have at least len 1, otherwise no words will be read when // threads > size - unsigned long part = std::max(wordlistStats.st_size / threads, 1L); + unsigned long part = std::max(wordlistStats.st_size / threads, 1LU); for (unsigned int i = 0; i < threads; i++) { ThreadPool.push_back(std::thread([this, i, part, metricsEnabled] { consume(i * part, (i + 1) * part, metricsEnabled);