Skip to content

Commit e0af985

Browse files
Fixed long decode
1 parent f2bbc8c commit e0af985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MLAPI/NetworkingManagerComponents/Binary/BitReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ private T ReadFloating<T>()
171171
}
172172
return result;
173173
}
174-
private static long ZigZagDecode(ulong d) => (long)(((d << 63) & 1) | (d >> 1));
174+
private static long ZigZagDecode(ulong d) => (long)(((d & 1) << 63) | (d >> 1));
175175

176176
public void Dispose()
177177
{

0 commit comments

Comments
 (0)