Skip to content

cleanup: Replace pointer arithmetic with explicit &arr[i]. - #2675

Merged
iphydf merged 1 commit into
TokTok:masterfrom
iphydf:pointer-arith
Feb 10, 2024
Merged

cleanup: Replace pointer arithmetic with explicit &arr[i].#2675
iphydf merged 1 commit into
TokTok:masterfrom
iphydf:pointer-arith

Conversation

@iphydf

@iphydf iphydf commented Feb 10, 2024

Copy link
Copy Markdown
Member

It's equivalent, but MISRA requires the latter form. It helps readability in some cases where the type of the overloaded operator+ is unclear.


This change is Reviewable

It's equivalent, but MISRA requires the latter form. It helps
readability in some cases where the type of the overloaded `operator+`
is unclear.
@iphydf iphydf added this to the v0.2.19 milestone Feb 10, 2024
@iphydf
iphydf marked this pull request as ready for review February 10, 2024 22:15
@codecov

codecov Bot commented Feb 10, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ca4606d) 73.70% compared to head (5dd9ee3) 73.75%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2675      +/-   ##
==========================================
+ Coverage   73.70%   73.75%   +0.05%     
==========================================
  Files         148      148              
  Lines       30482    30482              
==========================================
+ Hits        22466    22482      +16     
+ Misses       8016     8000      -16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JFreegman JFreegman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained

@iphydf
iphydf merged commit 5dd9ee3 into TokTok:master Feb 10, 2024
@iphydf
iphydf deleted the pointer-arith branch February 10, 2024 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants