Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Avoid overflow when computing FoR's difference of min and max #2549

Merged
merged 3 commits into from
Feb 27, 2025

Conversation

robert3005
Copy link
Member

No description provided.

@robert3005 robert3005 enabled auto-merge (squash) February 27, 2025 20:35
@robert3005 robert3005 merged commit b955b7d into develop Feb 27, 2025
26 checks passed
@robert3005 robert3005 deleted the rk/fforoverflow branch February 27, 2025 20:55
Comment on lines +76 to +80
ErasedStats::I8(x) => (x.max as i16 - x.min as i16) as u64,
ErasedStats::I16(x) => (x.max as i32 - x.min as i32) as u64,
ErasedStats::I32(x) => (x.max as i64 - x.min as i64) as u64,
ErasedStats::I64(x) => u64::try_from(x.max as i128 - x.min as i128)
.vortex_expect("max minus min result bigger than u64"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahhhh

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.

3 participants