Skip to content

fix: edge case missed#3144

Merged
Misha-133 merged 1 commit into
discord-net:devfrom
OverwrittenCode:Fix-Overflow-Exception-EdgeCase
Jun 11, 2025
Merged

fix: edge case missed#3144
Misha-133 merged 1 commit into
discord-net:devfrom
OverwrittenCode:Fix-Overflow-Exception-EdgeCase

Conversation

@OverwrittenCode

Copy link
Copy Markdown
Contributor

Description

This PR fixes an edge case that was missed in #3142 (commit 0c1536d).

The edge case was TypeCode.UInt64:

  • It fell into the default section of the switch expression which resulted in it returning (Int53Min, Int53Max) instead of (ulong.MinValue, Int53Max).

Changes

  • fix: edge case missed

Related Issues

N/A, no related issues. See description for related pull request.

@Misha-133 Misha-133 merged commit 1e50900 into discord-net:dev Jun 11, 2025
2 checks passed
@OverwrittenCode OverwrittenCode deleted the Fix-Overflow-Exception-EdgeCase branch June 12, 2025 20:20
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.

2 participants