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

Remove unneeded casts #880

Closed
wants to merge 1 commit into from
Closed

Remove unneeded casts #880

wants to merge 1 commit into from

Conversation

AreaZR
Copy link
Contributor

@AreaZR AreaZR commented Nov 15, 2022

Most of these casts are redundant, and automatically dealt with by either the C++/C standard, or operations done onto said numbers, such as & 1 operation making casts to int pointless.

@AreaZR AreaZR changed the title Remove unneeded casts. Remove unneeded casts Nov 17, 2022
@AreaZR
Copy link
Contributor Author

AreaZR commented Nov 30, 2022

Any update on this? @mborland

@mborland
Copy link
Member

Any update on this? @mborland

I don't think this passes the litmus test I have given you for inclusion. You also just pushed updates 10 mins ago?

@AreaZR
Copy link
Contributor Author

AreaZR commented Sep 30, 2023

@mborland Addressed!

Most of these casts are redundant, and automatically dealt with by either the C++/C standard, or operations done onto said numbers, such as & 1 operation making casts to int pointless.
jzmaddock added a commit that referenced this pull request Oct 17, 2023
Add tests and make sure everything is covered, and fix resulting errors.
@jzmaddock
Copy link
Collaborator

Closing in favour of #1039.
The code being changed turned out to have no associated tests, so those are now added there.

@jzmaddock jzmaddock closed this Oct 17, 2023
@AreaZR AreaZR deleted the cast branch October 17, 2023 19:29
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.

3 participants