Skip to content
Permalink
Browse files

Fix #1483: Remove Debug.Assert, because we cannot make sure that this…

… holds always. Some records may contain the wrong length information. Nothing we can do about that.
  • Loading branch information...
siegfriedpammer committed Apr 14, 2019
1 parent 652d0bf commit 56cb31a01f35c241796e8921e0948aa1e0aa76e8
Showing with 0 additions and 1 deletion.
  1. +0 −1 ILSpy.BamlDecompiler/Baml/BamlRecords.cs
@@ -98,7 +98,6 @@ internal abstract class SizedBamlRecord : BamlRecord {
int size = reader.ReadEncodedInt();

ReadData(reader, size - (int)(reader.BaseStream.Position - pos));
Debug.Assert(reader.BaseStream.Position - pos == size);
}

int SizeofEncodedInt(int val) {

0 comments on commit 56cb31a

Please sign in to comment.
You can’t perform that action at this time.