From f4d1ebd5b9e4f8055a74466bcb02856be9124610 Mon Sep 17 00:00:00 2001 From: Guilherme-M-Mateus Date: Sun, 25 Oct 2026 19:05:28 +0000 Subject: [PATCH] comm: use u64 for --total counters to avoid i32 wraparound Fixes #15797 Co-Authored-By: Claude Opus 5.5 --- src/uu/comm/src/comm.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uu/comm/src/comm.rs b/src/uu/comm/src/comm.rs index 5385ac4170a..92dc6df3e9a 100644 --- a/src/uu/comm/src/comm.rs +++ b/src/uu/comm/src/comm.rs @@ -210,9 +210,9 @@ fn comm( .read_line(rb) .map_err_context(|| filename2.maybe_quote().to_string())?; - let mut total_col_1 = 0; - let mut total_col_2 = 0; - let mut total_col_3 = 0; + let mut total_col_1: u64 = 0; + let mut total_col_2: u64 = 0; + let mut total_col_3: u64 = 0; let mode = if opts.get_flag(options::CHECK_ORDER) { CheckOrder::Always