Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Feb 10, 2024

Conversation

iphydf
Copy link
Member

@iphydf iphydf commented Feb 10, 2024

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
Copy link

codecov bot commented Feb 10, 2024

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.

Copy link
Member

@JFreegman JFreegman left a comment

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
60 checks passed
@iphydf iphydf deleted the pointer-arith branch February 10, 2024 23:45
This pull request was closed.
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.

2 participants