Repository navigation
util: Fix os_dtostr leaving exponent tail digits behind - #796
Merged
Merged
Conversation
zackees
marked this pull request as ready for review
October 15, 2026 02:13
Member
Author
|
macOS Tier 2 failed linking libobs ( |
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Oct 15, 2026
memmove now carries the NUL, so the removed '+' and leading zeros no longer leave the old tail digits behind. Same change in the C oracle and the Rust port. Fixes #754
Member
Author
|
Rebased onto master to resolve a doc-comment conflict with #739 (kept its |
zackees
force-pushed
the
fix/754-dtostr-exponent
branch
from
October 15, 2026 04:14
131e443 to
29a2411
Compare
zackees
enabled auto-merge
October 15, 2026 04:14
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.
Fixes #754.
RED (
util: Test os_dtostr exponent normalization round-trips): new Tier 2 filetest/cmocka/test_dtostr_exponent.c(no existing C test edited) anddtostr_exponent_round_tripsinrust/obs-util/tests/config_file_parity.rs. It fails withleft: "1.5e-55",right: "1.5e-5"on both the C oracle and Rust.GREEN:
memmovenow carries the NUL inlibobs/util/platform.cand in the oracle copy, and the Rustdtostrusesdraininstead ofcopy_within.soldr cargo test -p obs-utilpasses locally; Tier 2 is left to PR CI.Config values already written in the corrupted form stay wrong; this only stops new ones.