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 overflow based error from long to int casting #1072

Merged

Conversation

hamdaankhalid
Copy link
Contributor

@hamdaankhalid hamdaankhalid commented Mar 7, 2025

Currently ulong to int casting can result in exception in countdown wrapper because of negative numbers, this PR reorders casting after calculating so now the limit is on numRecords being more than int.MaxValue

@hamdaankhalid hamdaankhalid force-pushed the hkhalid/fix-casting-math-err branch from 44a23a8 to 2873420 Compare March 7, 2025 07:15
@hamdaankhalid hamdaankhalid changed the title fix overflow unchecked casting fix overflow causing error from long to intcasting Mar 7, 2025
@hamdaankhalid hamdaankhalid changed the title fix overflow causing error from long to intcasting fix overflow causing error from long to int casting Mar 7, 2025
@hamdaankhalid hamdaankhalid changed the title fix overflow causing error from long to int casting fix overflow based error from long to int casting Mar 7, 2025
@TalZaccai TalZaccai merged commit b17f11f into microsoft:main Mar 7, 2025
18 checks passed
@hamdaankhalid hamdaankhalid deleted the hkhalid/fix-casting-math-err branch March 7, 2025 20:36
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.

4 participants