Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix enum codec#1621

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
filmor merged 3 commits intomasterfromfix-enum-codec
May 4, 2022
Merged

Fix enum codec#1621

filmor merged 3 commits intomasterfromfix-enum-codec
May 4, 2022

Conversation

filmor
Copy link
Member

A boxed enum value can't be casted directly to an integer, but usingSystem.Convert
functions instead works fine.

What does this implement/fix? Explain your changes.

...

Does this close any currently open issues?

...

Any other comments?

...

Checklist

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change
  • If an enhancement PR, please create docs and at best an example
  • Add yourself toAUTHORS
  • Updated theCHANGELOG

@filmorfilmor mentioned this pull requestNov 23, 2021
@lostmsu
Copy link
Member

Is there a test forUInt64.MaxValue? Removal oftry ... catch ... looks suspicious.

@filmor
Copy link
MemberAuthor

Apparently there were no tests at all for this :)

I'll look into creating some.

A boxed enum value can't be casted directly to an integer, but using `System.Convert`functions instead works fine.
@filmor
Copy link
MemberAuthor

After finally understanding what you meant, it works now ;)

The old codec didn't handleulong either, that's why I didn't consider it.

@filmorfilmor merged commitac75e0c intomasterMay 4, 2022
@filmorfilmor deleted the fix-enum-codec branchMay 4, 2022 07:38
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@filmor@lostmsu

[8]ページ先頭

©2009-2025 Movatter.jp