Title: cmp: Unnecessary use of usize for --bytes limit and --ignore-inital values · Issue #184 · uutils/diffutils · GitHub
Open Graph Title: cmp: Unnecessary use of usize for --bytes limit and --ignore-inital values · Issue #184 · uutils/diffutils
X Title: cmp: Unnecessary use of usize for --bytes limit and --ignore-inital values · Issue #184 · uutils/diffutils
Description: The variables for --bytes, --ignore-initial and line count where size 'usize', thus limiting the readable bytes on 32-bit systems, while GNU cmp is compiled with LFS (Large File Support) and allows i64 values. There is no reason to imple...
Open Graph Description: The variables for --bytes, --ignore-initial and line count where size 'usize', thus limiting the readable bytes on 32-bit systems, while GNU cmp is compiled with LFS (Large File Support) and allows...
X Description: The variables for --bytes, --ignore-initial and line count where size 'usize', thus limiting the readable bytes on 32-bit systems, while GNU cmp is compiled with LFS (Large File Support) an...
Opengraph URL: https://github.com/uutils/diffutils/issues/184
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"cmp: Unnecessary use of usize for --bytes limit and --ignore-inital values","articleBody":"The variables for --bytes, --ignore-initial and line count where size 'usize', thus limiting the readable bytes on 32-bit systems, while GNU cmp is compiled with LFS (Large File Support) and allows i64 values.\n\nThere is no reason to implement a 32-bit barrier for 32 bit machines,when Rust supports u64 on all systems.\n\nThe --bytes limit could be set to 'u128' to support really large numbers. The performance impact would be negligible, as there only few calculations each time a full block is read from the file. \n\nI changed the variable types with PR #183 . This makes PR #172 obsolete.\n\n\n","author":{"url":"https://github.com/GunterSchmidt","@type":"Person","name":"GunterSchmidt"},"datePublished":"2026-03-01T22:20:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/184/diffutils/issues/184"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3938990e-07b5-66df-ea5c-078afc67627e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E04:3E6EAA:3B41A8E:526247E:6A4F4C97 |
| html-safe-nonce | e6fa7c8aa5b1f943d4f7da42dc09dc337fb36b285ca2a143635bd580fd4c0fe1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTA0OjNFNkVBQTozQjQxQThFOjUyNjI0N0U6NkE0RjRDOTciLCJ2aXNpdG9yX2lkIjoiNTA5OTA1MjUyOTI3MTkxNzcxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fcdb050438fa79821cbdaa1772746582dda9d1d8974b5d0bf76c5bab3b527008 |
| hovercard-subject-tag | issue:4008426336 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/uutils/diffutils/184/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cd5fa0d711d8d5e2ad3272d8a35ec5fffba7e7e6edd4fe4bfdb37ffa37ba2b89/uutils/diffutils/issues/184 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cd5fa0d711d8d5e2ad3272d8a35ec5fffba7e7e6edd4fe4bfdb37ffa37ba2b89/uutils/diffutils/issues/184 |
| og:image:alt | The variables for --bytes, --ignore-initial and line count where size 'usize', thus limiting the readable bytes on 32-bit systems, while GNU cmp is compiled with LFS (Large File Support) and allows... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GunterSchmidt |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/uutils/diffutils git https://github.com/uutils/diffutils.git |
| octolytics-dimension-user_id | 5148717 |
| octolytics-dimension-user_login | uutils |
| octolytics-dimension-repository_id | 341787720 |
| octolytics-dimension-repository_nwo | uutils/diffutils |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 341787720 |
| octolytics-dimension-repository_network_root_nwo | uutils/diffutils |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width