Browse Source

Simplify loop condition

pull/3114/head
ElektroKill 2 years ago
parent
commit
1f333adcc4
No known key found for this signature in database
GPG Key ID: 7E3C5C084E40E3EC
  1. 2
      ICSharpCode.ILSpyX/PdbProvider/PortableDebugInfoProvider.cs

2
ICSharpCode.ILSpyX/PdbProvider/PortableDebugInfoProvider.cs

@ -218,7 +218,7 @@ namespace ICSharpCode.ILSpyX.PdbProvider @@ -218,7 +218,7 @@ namespace ICSharpCode.ILSpyX.PdbProvider
{
dynamicFlags = new bool[reader.Length * 8];
int j = 0;
while (reader.Offset < reader.Length)
while (reader.RemainingBytes > 0)
{
int b = reader.ReadByte();
for (int i = 1; i < 0x100; i <<= 1)

Loading…
Cancel
Save