Skip to content

Update code for better readability#443

Merged
karuna2git merged 2 commits intordkcentral:developfrom
dshett549:topic/RDk-60607
Feb 23, 2026
Merged

Update code for better readability#443
karuna2git merged 2 commits intordkcentral:developfrom
dshett549:topic/RDk-60607

Conversation

@dshett549
Copy link
Contributor

Copilot AI review requested due to automatic review settings February 23, 2026 15:09
@dshett549 dshett549 requested a review from a team as a code owner February 23, 2026 15:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request improves code readability by adding parentheses around arithmetic subexpressions in overflow check conditions. The changes are purely stylistic and do not alter the program's behavior, as operator precedence already ensures correct evaluation. The modifications align with the codebase's existing convention of using parentheses for clarity in expressions involving arithmetic operations.

Changes:

  • Added parentheses around SIZE_MAX - payload in overflow checks
  • Added parentheses around SIZE_MAX - clnt->bytes_read in overflow checks

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/rtmessage/rtrouted.c Added parentheses around arithmetic subexpressions in two overflow check conditions (lines 1642 and 1651) to improve readability
src/rtmessage/rtrouteBase.c Added parentheses around arithmetic subexpressions in two overflow check conditions (lines 420 and 429) to improve readability, mirroring changes in rtrouted.c

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@karuna2git karuna2git merged commit 4a25e92 into rdkcentral:develop Feb 23, 2026
10 of 11 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants