Skip to content

Commit

Permalink
Fix tests (use Select to cast to byte instead of Cast<byte>())
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanmoffat committed Feb 25, 2022
1 parent 078ebb4 commit 9498d6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EOLib.IO/Services/NumberEncoderService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public byte[] EncodeNumber(int number, int size)

numArray[0] = unsigned + 1;

return numArray.Cast<byte>()
return numArray.Select(x => (byte)x)
.Take(size)
.ToArray();
}
Expand Down

0 comments on commit 9498d6e

Please sign in to comment.