Skip to content

Conversation

@MiguelCompany
Copy link
Member

@MiguelCompany MiguelCompany commented Oct 14, 2025

Description

This fixes #211 by first calling make_alignment, then setting last_data_size_.

@Mergifyio backport 2.2.x

Contributor Checklist

  • Commit messages follow the project guidelines.
  • The code follows the style guidelines of this project.
  • N/A: Tests that thoroughly check the new feature have been added/Regression tests checking the bug and its fix have been added; the added tests pass locally
  • N/A: Any new/modified methods have been properly documented using Doxygen.
  • Changes are backport compatible: they do NOT break ABI nor change library core behavior.
  • Changes are API compatible.
  • N/A: New feature has been added to the versions.md file (if applicable).
  • Applicable backports have been included in the description.

Reviewer Checklist

  • The PR has a milestone assigned.
  • The title and description correctly express the PR's purpose.
  • Check contributor checklist is correct.
  • Check CI results: changes do not issue any warning.
  • Check CI results: CI pass and failing tests are unrelated with the changes.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
@MiguelCompany MiguelCompany merged commit 276d7f5 into master Oct 15, 2025
12 checks passed
@MiguelCompany MiguelCompany deleted the feature/23821 branch October 15, 2025 07:25
@MiguelCompany
Copy link
Member Author

@Mergifyio backport 2.2.x

@mergify
Copy link

mergify bot commented Oct 15, 2025

backport 2.2.x

✅ Backports have been created

Details

mergify bot pushed a commit that referenced this pull request Oct 15, 2025
* Refs #23821. First align then save `last_data_size_`.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

* Refs #23821. Uncrustify.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

---------

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
(cherry picked from commit 276d7f5)
MiguelCompany added a commit that referenced this pull request Oct 15, 2025
* Refs #23821. First align then save `last_data_size_`.



* Refs #23821. Uncrustify.



---------


(cherry picked from commit 276d7f5)

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Co-authored-by: Miguel Company <miguelcompany@eprosima.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optimization of the alignment calculation using the Cdr::alignment() method does not work

3 participants