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

AZero13
Copy link
Contributor

@AZero13 AZero13 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.

@AZero13 AZero13 force-pushed the cast branch 5 times, most recently from d2a27f9 to dcc2447 Compare November 17, 2022 15:02
@AZero13 AZero13 changed the title Remove unneeded casts. Remove unneeded casts Nov 17, 2022
@AZero13 AZero13 force-pushed the cast branch 2 times, most recently from e1ffffc to 5fe2933 Compare November 30, 2022 15:41
@AZero13
Copy link
Contributor Author

AZero13 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?

@AZero13
Copy link
Contributor Author

AZero13 commented Sep 30, 2023

@mborland Addressed!

@AZero13 AZero13 force-pushed the cast branch 8 times, most recently from a878ba7 to 80eabf8 Compare October 2, 2023 19:33
@AZero13 AZero13 force-pushed the cast branch 2 times, most recently from 67cb716 to 1d51061 Compare October 15, 2023 22:53
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
@AZero13 AZero13 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