Skip to content

r.stats: bump up counts storage to unsigned long long - #7790

Open
marisn wants to merge 1 commit into
OSGeo:mainfrom
marisn:r_stats_overflow
Open

r.stats: bump up counts storage to unsigned long long#7790
marisn wants to merge 1 commit into
OSGeo:mainfrom
marisn:r_stats_overflow

Conversation

@marisn

@marisn marisn commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

On Windows log is 32bit and only long long is 64bit.

Problems now will occur when counts exceed 18446744073709551615.

Fixes: #7769

Authored by Claude Sonnet 4.6

On Windows `log` is 32bit and only `long long` is 64bit.

Fixes: OSGeo#7769

Authored by Claude Sonnet 4.6
@marisn
marisn requested a review from HuidaeCho July 31, 2026 06:46
@github-actions github-actions Bot added raster Related to raster data processing C Related code is in C module labels Jul 31, 2026
@cwhite911

Copy link
Copy Markdown
Contributor

Looks good to me.

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

Labels

C Related code is in C module raster Related to raster data processing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] r.stats reports negative counts when tabulating across 2 rasters

2 participants