File tree 1 file changed +2
-2
lines changed
src/libraries/System.Private.CoreLib/src/System/Collections/Generic
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -576,7 +576,7 @@ private static bool LessThan(ref T left, ref T right)
576
576
if ( typeof ( T ) == typeof ( float ) ) return ( float ) ( object ) left < ( float ) ( object ) right ;
577
577
if ( typeof ( T ) == typeof ( double ) ) return ( double ) ( object ) left < ( double ) ( object ) right ;
578
578
if ( typeof ( T ) == typeof ( Half ) ) return ( Half ) ( object ) left < ( Half ) ( object ) right ;
579
- return left . CompareTo ( right ) < 0 ;
579
+ return left . CompareTo ( right ) < 0 ? true : false ;
580
580
}
581
581
582
582
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] // compiles to a single comparison or method call
@@ -595,7 +595,7 @@ private static bool GreaterThan(ref T left, ref T right)
595
595
if ( typeof ( T ) == typeof ( float ) ) return ( float ) ( object ) left > ( float ) ( object ) right ;
596
596
if ( typeof ( T ) == typeof ( double ) ) return ( double ) ( object ) left > ( double ) ( object ) right ;
597
597
if ( typeof ( T ) == typeof ( Half ) ) return ( Half ) ( object ) left > ( Half ) ( object ) right ;
598
- return left . CompareTo ( right ) > 0 ;
598
+ return left . CompareTo ( right ) > 0 ? true : false ;
599
599
}
600
600
}
601
601
You can’t perform that action at this time.
0 commit comments