Fix CppCodeGen break with latest XCode (dotnet/corert#4926)
authorJan Kotas <jkotas@microsoft.com>
Tue, 14 Nov 2017 12:13:22 +0000 (04:13 -0800)
committerJan Kotas <jkotas@microsoft.com>
Tue, 14 Nov 2017 15:27:52 +0000 (07:27 -0800)
Latest XCode errors on ordered comparison of pointer with integer

Also, fixed some unnecessary always-true comparisons that the C++ compiler emitted warnings for.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
src/mscorlib/shared/System/Diagnostics/Tracing/ActivityTracker.cs

index bb52a9b..9ac32c3 100644 (file)
@@ -525,7 +525,7 @@ namespace System.Diagnostics.Tracing
             /// </summary>
             private static unsafe void WriteNibble(ref byte* ptr, byte* endPtr, uint value)
             {
-                Debug.Assert(0 <= value && value < 16);
+                Debug.Assert(value < 16);
                 Debug.Assert(ptr < endPtr);
 
                 if (*ptr != 0)