Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
GreyCat committed Apr 17, 2019
2 parents f8ead93 + 3b94aa4 commit d8d5e25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KaitaiStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ public ulong ReadBitsIntLe(int n)
byte[] buf = ReadBytes(bytesNeeded);
for (int i = 0; i < buf.Length; i++)
{
ulong v = (ulong)(buf[i] << BitsLeft);
ulong v = (ulong)((ulong)buf[i] << BitsLeft);
Bits |= v;
BitsLeft += 8;
}
Expand Down

0 comments on commit d8d5e25

Please sign in to comment.