Skip to content

comm: use u64 for --total counters - #15839

Merged
cakebaker merged 1 commit into
uutils:mainfrom
Guilherme-M-Mateus:comm-total-u64
Oct 26, 2026
Merged

cakebaker merged 1 commit into
uutils:mainfrom
Guilherme-M-Mateus:comm-total-u64

Conversation

@Guilherme-M-Mateus

Copy link
Copy Markdown
Contributor

Fixes #15797

The --total counters were untyped 0 literals, so Rust inferred i32 and they wrapped silently in release builds once a column reached 2^31 lines. They are now u64.

No regression test: reproducing it needs over 2^31 input lines, too large for the test suite. Existing test_comm tests pass.

AI-assisted (Claude Code); I reviewed the change.

🤖 Generated with Claude Code

Fixes uutils#15797

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cakebaker
cakebaker merged commit e612998 into uutils:main Oct 26, 2026
98 checks passed
@cakebaker

Copy link
Copy Markdown
Contributor

Thanks for your PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

comm: --total counters wrap at 2^31 lines (i32 overflow)

2 participants