Skip to content

Commit

Permalink
refactor(code-generation): Changed the implementation of getSizeInByt…
Browse files Browse the repository at this point in the history
…es to be a bit more correct.
  • Loading branch information
chrisdutz committed Jan 30, 2022
1 parent 447ef68 commit 2ce32ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ public<#if type.isDiscriminatedParentTypeDefinition()> abstract</#if> class ${ty

@Override
public int getLengthInBytes() {
return getLengthInBits() / 8;
return (int) Math.ceil((float) getLengthInBits() / 8.0);
}

@Override
Expand Down

0 comments on commit 2ce32ef

Please sign in to comment.