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

Marked const_float_from_string as unsafe. Fixes #513 #519

Merged
merged 1 commit into from
Jul 27, 2024

Conversation

TheDan64
Copy link
Owner

@TheDan64 TheDan64 commented Jul 27, 2024

Description

Marks the const_float_from_string method as unsafe and adds an assertion that the string isn't empty

Related Issue

#513

How This Has Been Tested

Locally w/ LLVM 17

Option<Breaking Changes>

The method is now unsafe, an assertion triggers on empty string rather than UB.

Checklist

@TheDan64 TheDan64 self-assigned this Jul 27, 2024
@TheDan64 TheDan64 merged commit d1c0936 into master Jul 27, 2024
32 checks passed
@TheDan64 TheDan64 deleted the const_float_from_string branch July 27, 2024 14:22
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