1
0
Fork 0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-05-08 23:16:15 +02:00

Use u64 instead of i64

This commit is contained in:
joveian 2023-01-21 16:57:04 -08:00 committed by Jack O'Connor
parent 4c819d01bc
commit 98135307bf

View File

@ -537,7 +537,7 @@ fn check_one_line(line: &str, args: &Args) -> bool {
}
}
fn check_one_checkfile(path: &Path, args: &Args, files_failed: &mut i64) -> Result<()> {
fn check_one_checkfile(path: &Path, args: &Args, files_failed: &mut u64) -> Result<()> {
let checkfile_input = Input::open(path, args)?;
let mut bufreader = io::BufReader::new(checkfile_input);
let mut line = String::new();
@ -564,7 +564,7 @@ fn main() -> Result<()> {
}
let thread_pool = thread_pool_builder.build()?;
thread_pool.install(|| {
let mut files_failed = 0i64;
let mut files_failed = 0u64;
// Note that file_args automatically includes `-` if nothing is given.
for path in &args.file_args {
if args.check() {