Skip to content

Commit

Permalink
Update QRCoder/QRCodeGenerator.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Günther Foidl <[email protected]>
  • Loading branch information
Shane32 and gfoidl authored May 2, 2024
1 parent c3432d1 commit 65e91be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions QRCoder/QRCodeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,7 @@ private static Polynom CalculateGeneratorPolynom(int numEccWords)
var multiplierPolynom = new Polynom(numEccWords * 2);
for (var i = 1; i <= numEccWords - 1; i++)
{
// Re-use multiplierPolynom, so clear it's content.
multiplierPolynom.PolyItems.Clear();
multiplierPolynom.PolyItems.Add(new PolynomItem(0, 1));
multiplierPolynom.PolyItems.Add(new PolynomItem(i, 0));
Expand Down

0 comments on commit 65e91be

Please sign in to comment.