fix(libc): return positive zero when float parsing consumes no input #3905
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3905"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by aureau on 2026-10-11T19:03:03Z.
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