common: add postfix increment to BitArray iterators #1218
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!1218
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1218/head"
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?
@Akrambadr99 on GitHub · 2026-10-08 18:23 UTC · original
Akrambadr99:fix/bit-array-postfix-increment→main· +52 −1 · 2 files · 2 commits · closed without mergingCommon::BitArray::Iteratorimplements prefix increment but has no postfix overload, soit++and*it++fail to compile. Add postfix increment by saving the iterator and delegating advancement to the existing prefix overload.Extend the existing BitArray test executable to check the returned old range, independent saved copies, a cross-word range, the last bit, and reaching
end()after a single full-array range.Validation:
2f4b8a335d5e27a5153bdea670bd877a061e37b1withno operator++(int) declared for postfix ++.-Wall -Wextra -Werror: the completeBitArrayTests.cppexecutable passes after the fix.git diff --checkpasses.This is a small iterator API fix; it does not claim to fix a game crash or improve game compatibility. The full emulator was not built locally.
@coderabbitai[bot] on GitHub · 2026-10-08 18:26 UTC · original · edited 2026-10-08 18:45 UTC
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
e58db22c-a92d-45bb-94e6-a6f9b3987c89📥 Commits
Reviewing files that changed from the base of the PR and between
0a0ab36de1andab6bf82e13.📒 Files selected for processing (2)
src/common/bitArray.htests/BitArrayTests.cpp🚧 Files skipped from review as they are similar to previous changes (2)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
📝 Walkthrough
Walkthrough
Common::BitArray::Iteratorgains postfix increment. It returns a copy of the iterator before advancing the original. Tests cover saved iterator copies, transitions across ranges and words, the final bit, reachingend(), and a full-array range. Comments describe the iterator and existing tests.Priority: ⬇️ Low
Change: Bug fix
Merge Risk: ⚪ Minimal · up to
ab6bfThe iterator change appears mergeable after normal checks; no issue requiring a fix was identified.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.Pull request closed