Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keep an unsigned counter from going negative
Issue found by clang. This issue would likely be fairly rare, but it exists and should be fixed. Fixes #10479. Signed-off-by: Gavin Hurlbut <ghurlbut@mythtv.org>
- Loading branch information
414159d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code isn't equivalent.
Should be using i-1 wherever it was using i.
414159d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
414159d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad. Too late and not enough sleep
414159d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
414159d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
414159d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.