Skip to content

Commit

Permalink
Fix a bug in bit pack. (#1311)
Browse files Browse the repository at this point in the history
Co-authored-by: Qingxin Wu <[email protected]>
  • Loading branch information
qingxinwu and Qingxin Wu authored Oct 29, 2024
1 parent 9f8d951 commit 94cd816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -3813,8 +3813,8 @@ Initial implementation of this specification defines
1. Otherwise if |i| is |inputSize| - 1, then:
1. [=iteration/While=] |numBits| &lt; 8:
1. Set |currentByte| to |currentByte| * 2.
1. [=list/Append=] |currentByte| to |packed|.
1. Increment |numBits| by 1.
1. [=list/Append=] |currentByte| to |packed|.
1. [=Assert=] that |packed|'s [=list/size=] is (|inputSize| + 7) / 8.0.
1. Return |packed|.
</div>
Expand Down

0 comments on commit 94cd816

Please sign in to comment.