Skip to content

Commit 6c041cf

Browse files
committed
remove uint casts
1 parent c29f826 commit 6c041cf

File tree

1 file changed

+2
-2
lines changed
  • src/libraries/System.Private.CoreLib/src/System

1 file changed

+2
-2
lines changed

src/libraries/System.Private.CoreLib/src/System/Guid.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ public byte[] ToByteArray(bool bigEndian)
944944
// Returns whether bytes are successfully written to given span.
945945
public bool TryWriteBytes(Span<byte> destination)
946946
{
947-
if ((uint)destination.Length < 16)
947+
if (destination.Length < 16)
948948
return false;
949949

950950
if (BitConverter.IsLittleEndian)
@@ -963,7 +963,7 @@ public bool TryWriteBytes(Span<byte> destination)
963963
// Returns whether bytes are successfully written to given span.
964964
public bool TryWriteBytes(Span<byte> destination, bool bigEndian, out int bytesWritten)
965965
{
966-
if ((uint)destination.Length < 16)
966+
if (destination.Length < 16)
967967
{
968968
bytesWritten = 0;
969969
return false;

0 commit comments

Comments
 (0)