Skip to content

Fix XML get_field_from_array index increment and write() indent forwarding - #71

Open
clockblocker wants to merge 1 commit into
mainfrom
fix-xml-array-and-indent
Open

clockblocker wants to merge 1 commit into
mainfrom
fix-xml-array-and-indent

Conversation

@clockblocker

Copy link
Copy Markdown
Owner

Summary

Fixes two small bugs in rfl::xml (split out from #66 for clean independent upstreaming):

  1. rfl::xml::Reader::get_field_from_array never incremented i in its sibling loop, so any _idx > 0 scanned all siblings and always failed (also fixes the "of of bounds." typo).
  2. rfl::xml::write(obj, _indent) ignored _indent when forwarding to the std::ostream& overload.

Verification

  • Built with Ninja (-Wall -Werror) and ran all XML tests via ctest (including new regression tests in tests/xml/test_array_and_indent_fix.cpp).

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