Skip to content

Avoid padding CAN_FD_MESSAGE_64 objects to 4 bytes #628

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

Merged
merged 3 commits into from
Jun 23, 2019

Conversation

kscharlund
Copy link
Contributor

In the BLF files with CAN_FD_MESSAGE_64 objects that I have (unfortunately none that I can share at this point), objects of that type are not padded to multiples of four bytes. This also agrees with the implementation in vector_blf.

@codecov
Copy link

codecov bot commented Jun 22, 2019

Codecov Report

Merging #628 into develop will increase coverage by 0.02%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop     #628      +/-   ##
===========================================
+ Coverage    63.91%   63.94%   +0.02%     
===========================================
  Files           63       63              
  Lines         5623     5624       +1     
===========================================
+ Hits          3594     3596       +2     
+ Misses        2029     2028       -1

2 similar comments
@codecov
Copy link

codecov bot commented Jun 22, 2019

Codecov Report

Merging #628 into develop will increase coverage by 0.02%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop     #628      +/-   ##
===========================================
+ Coverage    63.91%   63.94%   +0.02%     
===========================================
  Files           63       63              
  Lines         5623     5624       +1     
===========================================
+ Hits          3594     3596       +2     
+ Misses        2029     2028       -1

@codecov
Copy link

codecov bot commented Jun 22, 2019

Codecov Report

Merging #628 into develop will increase coverage by 0.02%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop     #628      +/-   ##
===========================================
+ Coverage    63.91%   63.94%   +0.02%     
===========================================
  Files           63       63              
  Lines         5623     5624       +1     
===========================================
+ Hits          3594     3596       +2     
+ Misses        2029     2028       -1

Copy link
Collaborator

@christiansandberg christiansandberg left a comment

Choose a reason for hiding this comment

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

I would probably refactor the code just a little bit to avoid calculating the padding twice.

@felixdivo felixdivo added bug file-io about reading & writing to files labels Jun 23, 2019
@felixdivo felixdivo added this to the 4.0 Release milestone Jun 23, 2019
@christiansandberg christiansandberg merged commit f6e946f into hardbyte:develop Jun 23, 2019
@christiansandberg christiansandberg mentioned this pull request Feb 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug file-io about reading & writing to files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants