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

Fixed Tensor Conversion Test #112703

Merged
merged 1 commit into from
Feb 19, 2025
Merged

Conversation

michaelgsharp
Copy link
Member

Fixes #112286.

We had a section of tests that should never overflow, but we had double -> float instead of double -> double. This was causing the issue when the randomly generated double wouldn't fit into the float.

@michaelgsharp michaelgsharp self-assigned this Feb 19, 2025
@Copilot Copilot bot review requested due to automatic review settings February 19, 2025 18:00

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@michaelgsharp michaelgsharp merged commit 33160cc into dotnet:main Feb 19, 2025
24 checks passed
@michaelgsharp michaelgsharp deleted the convert-checked branch February 19, 2025 21:07
grendello pushed a commit to grendello/runtime that referenced this pull request Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

System.Numerics.Tensors.Tests.ConvertTests.ConvertChecked failing with System.OverflowException
2 participants