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

replace reinterpret_cast with memcpy #2896

Merged
merged 4 commits into from
Jan 19, 2024
Merged

replace reinterpret_cast with memcpy #2896

merged 4 commits into from
Jan 19, 2024

Conversation

neheb
Copy link
Collaborator

@neheb neheb commented Jan 19, 2024

Fixes cast-align warning on 32-bit.

Fixes cast-align warning on 32-bit.

Signed-off-by: Rosen Penev <[email protected]>
@ghost
Copy link

ghost commented Jan 19, 2024

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@neheb
Copy link
Collaborator Author

neheb commented Jan 19, 2024

interesting. this is the only usage of

*reinterpret_cast

guess that's bad.

Copy link

codecov bot commented Jan 19, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (1290548) 63.90% compared to head (ba2f8cb) 63.90%.
Report is 2 commits behind head on main.

Files Patch % Lines
src/http.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2896   +/-   ##
=======================================
  Coverage   63.90%   63.90%           
=======================================
  Files         104      104           
  Lines       22389    22389           
  Branches    10876    10876           
=======================================
  Hits        14308    14308           
  Misses       5857     5857           
  Partials     2224     2224           

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

neheb added 3 commits January 18, 2024 20:07
These usages are not problematic, but they would be if alignment does
not match. Also less verbose.

Signed-off-by: Rosen Penev <[email protected]>
They are equivalent.

Signed-off-by: Rosen Penev <[email protected]>
No longer relevant.

Signed-off-by: Rosen Penev <[email protected]>
@neheb neheb merged commit cac362c into Exiv2:main Jan 19, 2024
60 checks passed
@neheb neheb deleted the em branch January 19, 2024 13:02
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