$OpenBSD: patch-src_PasswordCracker_cc,v 1.2 2021/05/23 18:23:09 sebastia Exp $

std::max expects same type for both params

Index: src/PasswordCracker.cc
--- src/PasswordCracker.cc.orig
+++ src/PasswordCracker.cc
@@ -58,7 +58,7 @@ void PasswordCracker::crack() {
     // 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, 1LL);
     for (unsigned int i = 0; i < threads; i++) {
         ThreadPool.push_back(std::thread([this, i, part, metricsEnabled] {
             consume(i * part, (i + 1) * part, metricsEnabled);
