Skip to content

Commit 6101a18

Browse files
Shane32gfoidl
andauthored
Update QRCoder/QRCodeGenerator.Polynom.cs
Co-authored-by: Günther Foidl <[email protected]>
1 parent a83f55c commit 6101a18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

QRCoder/QRCodeGenerator.Polynom.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public void Add(PolynomItem item)
3838
/// </summary>
3939
public void RemoveAt(int index)
4040
{
41-
if (index < 0 || index >= _length)
41+
if ((uint)index >= (uint)_length)
4242
throw new IndexOutOfRangeException();
4343

4444
if (index < _length - 1)

0 commit comments

Comments
 (0)