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

Return false when initial check in convert_from_string fails #1032

Closed
wants to merge 1 commit into from

Conversation

AZero13
Copy link
Contributor

@AZero13 AZero13 commented Oct 2, 2023

Otherwise, we currently have undefined behavior, as this method returns a bool, so we cannot just return without specifying what we are returning.

@AZero13 AZero13 changed the title Return false because we are in a function returning a boolean Return false when initial check in convert_from_string fails Oct 2, 2023
@AZero13 AZero13 force-pushed the return-false branch 2 times, most recently from 53b8056 to 1c814d8 Compare October 2, 2023 19:32
@AZero13 AZero13 force-pushed the return-false branch 3 times, most recently from 67cb716 to 5463a63 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.
@AZero13 AZero13 closed this Oct 17, 2023
@AZero13 AZero13 deleted the return-false 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.

1 participant