diff options
| author | joveian <[email protected]> | 2023-01-21 16:57:04 -0800 |
|---|---|---|
| committer | Jack O'Connor <[email protected]> | 2023-02-04 10:14:52 -0800 |
| commit | 98135307bf00c8dee991b016c2117c913fc18a47 (patch) | |
| tree | f135256007ef45ebbbf82aecae68fd8c5251ebf8 /b3sum | |
| parent | 4c819d01bcea974bbac8199dafe9ab68a24f796b (diff) | |
Use u64 instead of i64
Diffstat (limited to 'b3sum')
| -rw-r--r-- | b3sum/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/b3sum/src/main.rs b/b3sum/src/main.rs index 11aac5a..8ef1bec 100644 --- a/b3sum/src/main.rs +++ b/b3sum/src/main.rs @@ -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() { |
