Skip to content

conv to unsigned: no check required - #11083

Merged
thewilsonator merged 3 commits into
dlang:masterfrom
denizzzka:unsign_cast
Aug 17, 2026
Merged

conv to unsigned: no check required#11083
thewilsonator merged 3 commits into
dlang:masterfrom
denizzzka:unsign_cast

Conversation

@denizzzka

Copy link
Copy Markdown
Contributor

Rationale

#11082 added unnecessary checks here. We already sure that value is not negative, so it is safe to use cast here

  • I have performed a self-review of my code.

@denizzzka denizzzka changed the title cast to unsigned: no check required conv to unsigned: no check required Aug 16, 2026
Comment thread std/conv.d Outdated
Comment thread std/conv.d Outdated
denizzzka and others added 2 commits August 16, 2026 23:18
Co-authored-by: Mindy Batek <desisma@heidel.beer>
Co-authored-by: Mindy Batek <desisma@heidel.beer>
@thewilsonator
thewilsonator merged commit c84a596 into dlang:master Aug 17, 2026
10 checks passed
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.

3 participants