Repository navigation
fix(libc): return positive zero when float parsing consumes no input - #3905
Merged
oneandonlydean merged 3 commits intoOct 12, 2026
Merged
oneandonlydean merged 3 commits into
oneandonlydean merged 3 commits into
Conversation
This was referenced Oct 11, 2026
This was referenced Oct 12, 2026
This was referenced Oct 12, 2026
9 tasks done
12 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Fixes #3090. On Windows, floating-point conversions can return negative zero when they consume no input. Return positive zero in that case while preserving valid negative-zero conversions and the end pointer’s behavior.
Adds regression coverage for the narrow and wide conversion functions. This carries forward work from #2725 and #3613, rebased onto current
mainand shared by @ArekatlaNishanthchowdary. The original commit authorship is preserved. The earlier PRs closed for administrative reasons.Tested
guest_math,guest_strings, andguest_wide_strings: passed five consecutive runs with the fixguest_mathfailed against the originalStrings.cpp; all three focused tests passed with the fixtools/check_conventions.py --base origin/main: passedguest_kernel_sys,windows_exceptions,agc_driver_emulated_color_compare,agc_driver_sampled_cache_budget, andguest_filesystemagc_driver_sampled_cache_budgetpassed five consecutive rerunsChecklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); no silent stubs added.mdfiles, or images added to the repository