Repository navigation
obs-util: accept C hexadecimal prefixes in config integers - #1532
Merged
Merged
Conversation
zackees
enabled auto-merge
October 20, 2026 17:33
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.
Configuration values such as 0x0X2a and 0x-0x2a return zero instead of matching C integer parsing.
Configuration integer values accept the optional hexadecimal prefix after the sign, matching C.
Split fix from #1462. Fixes #1531.
Validation:
soldr cargo test -p obs-util hex_integer_prefix_after_config_prefix -- --test-threads=1fails on RED47078c86eand passes with the fix. Related tests:soldr cargo test -p obs-util config_file_parity -- --test-threads=1.PR CI supplies lint and Tier 2 validation. No public headers or existing C tests changed. Tier 4 does not apply to these utility APIs.