Skip to content

Commit

Permalink
apply rsdecoder bugfix from LazarSoft/jsqrcode#64
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver committed Feb 8, 2023
1 parent 4103d39 commit 8b82410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rsdecoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function ReedSolomonDecoder(field)
if (numErrors == 1)
{
// shortcut
return new Array(errorLocator.getCoefficient(1));
return [ errorLocator.getCoefficient(1) ];
}
var result = new Array(numErrors);
var e = 0;
Expand Down

0 comments on commit 8b82410

Please sign in to comment.