$OpenBSD: patch-src_PasswordCracker_cc,v 1.1.1.1 2021/02/02 16:07:54 sebastia Exp $

std::max expects same type for both params

Index: src/PasswordCracker.cc
--- src/PasswordCracker.cc.orig
+++ src/PasswordCracker.cc
@@ -60,7 +60,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); 
@@ -231,4 +231,4 @@ void PasswordCracker::sillyCtfGuesses ()
 			break ;
 		}
 	}
-}
\ No newline at end of file
+}
