Skip to content

Commit

Permalink
Read to listCount, not list.Count (fixes #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Dec 24, 2022
1 parent 3bbaab4 commit f33a307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Present/Data/ValueConverters/UInt64ListToBytesConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private static List<ulong> FromBytes(byte[] bytes)

var list = new List<ulong>(listCount);

for (var index = 0; index < list.Count; index++)
for (var index = 0; index < listCount; index++)
list.Add(reader.ReadUInt64());

return list;
Expand Down

0 comments on commit f33a307

Please sign in to comment.