File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/libraries/System.Private.CoreLib/src/System Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -944,7 +944,7 @@ public byte[] ToByteArray(bool bigEndian)
944
944
// Returns whether bytes are successfully written to given span.
945
945
public bool TryWriteBytes ( Span < byte > destination )
946
946
{
947
- if ( ( uint ) destination . Length < 16 )
947
+ if ( destination . Length < 16 )
948
948
return false ;
949
949
950
950
if ( BitConverter . IsLittleEndian )
@@ -963,7 +963,7 @@ public bool TryWriteBytes(Span<byte> destination)
963
963
// Returns whether bytes are successfully written to given span.
964
964
public bool TryWriteBytes ( Span < byte > destination , bool bigEndian , out int bytesWritten )
965
965
{
966
- if ( ( uint ) destination . Length < 16 )
966
+ if ( destination . Length < 16 )
967
967
{
968
968
bytesWritten = 0 ;
969
969
return false ;
You can’t perform that action at this time.
0 commit comments