Skip to content

Commit 5f8c306

Browse files
Removed division
1 parent a639170 commit 5f8c306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MLAPI/NetworkingManagerComponents/Binary/BitStream.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public BitStream(byte[] target, double growthFactor = 2.0)
2727

2828
public override bool CanWrite => true;
2929

30-
public override long Length => (long) (BitLength/8);
30+
public override long Length => (long) (BitLength>>3);
3131

3232
public override long Position { get => (long)(BitPosition>>3); set => BitPosition = (ulong)value << 3; }
3333
public ulong BitPosition { get; set; }

0 commit comments

Comments
 (0)