Skip to content

Commit 6855d54

Browse files
committed
fdg
1 parent 7cb67ae commit 6855d54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/IKVM.ByteCode/Decoding/StackMapFrame.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ public static bool TryRead(ref ClassFormatReader reader, out StackMapFrame frame
8585
if (reader.TryReadU1(out byte frameType) == false)
8686
return false;
8787

88-
// read data, which is size -1 (for frametype)
89-
if (reader.TryReadMany(size - 1, out var data) == false)
88+
// read data, which is size - 1 (for frametype)
89+
if (reader.TryReadMany(size - ClassFormatReader.U1, out var data) == false)
9090
return false;
9191

9292
frame = new StackMapFrame(frameType, data);

0 commit comments

Comments
 (0)