Skip to content

Commit 6175e87

Browse files
SwapEndian fix
1 parent 0bf6b22 commit 6175e87

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

MLAPI/NetworkingManagerComponents/Cryptography/MessageDigest.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System;
1+
using MLAPI.NetworkingManagerComponents.Binary;
2+
using System;
23
using System.Collections.Generic;
34
using System.Linq;
45
using System.Text;
@@ -97,11 +98,11 @@ uint ComputeIndex(int block, int idx)
9798
result.i3 += d;
9899
result.i4 += e;
99100
}
100-
result.i0 = Support.SwapEndian(result.i0);
101-
result.i1 = Support.SwapEndian(result.i1);
102-
result.i2 = Support.SwapEndian(result.i2);
103-
result.i3 = Support.SwapEndian(result.i3);
104-
result.i4 = Support.SwapEndian(result.i4);
101+
result.i0 = BinaryHelpers.SwapEndian(result.i0);
102+
result.i1 = BinaryHelpers.SwapEndian(result.i1);
103+
result.i2 = BinaryHelpers.SwapEndian(result.i2);
104+
result.i3 = BinaryHelpers.SwapEndian(result.i3);
105+
result.i4 = BinaryHelpers.SwapEndian(result.i4);
105106
return result;
106107
}
107108

0 commit comments

Comments
 (0)