Skip to content

Commit

Permalink
Vint algorithm: fix off-by-one loop index
Browse files Browse the repository at this point in the history
Fixes #184.
  • Loading branch information
jyavenard authored Mar 25, 2024
1 parent b44e352 commit 975191b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mimesniff.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@ use the following steps:
<li>Let <var>index</var> be 0.
<li>Let <var>parsed number</var> be <var>sequence</var>[<var>index</var>] &amp; ~<var>mask</var>.
<li>Increment <var>index</var> by one.
<li>Let <var>bytes remaining</var> be the value of <var>number size</var>.
<li>Let <var>bytes remaining</var> be the value of <var>number size</var> - 1.
<li>
While <var>bytes remaining</var> is not zero, execute there steps:
<ol>
Expand Down Expand Up @@ -2949,6 +2949,7 @@ type</dfn>:
David Singer,
Domenic Denicola,
Henri Sivonen,
Jean-Yves Avenard,
Jonathan Neal,
Joshua Cranmer,
Larry Masinter,
Expand Down

0 comments on commit 975191b

Please sign in to comment.