summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2016-04-09 15:51:18 -1000
committerJan Kotas <jkotas@microsoft.com>2016-04-09 15:51:18 -1000
commit2ee084a216d42708074cb9a94b316db72c664c3f (patch)
tree85b7678684c103b51e03fea13d31b507e2d5c79e /src
parent88f55f5fe9ae57c0e173d87e7cb4c5a0c4da6d02 (diff)
parentc92467665a8519fa0c5d9be7b7ec5d760b37d38b (diff)
downloadcoreclr-2ee084a216d42708074cb9a94b316db72c664c3f.tar.gz
coreclr-2ee084a216d42708074cb9a94b316db72c664c3f.tar.bz2
coreclr-2ee084a216d42708074cb9a94b316db72c664c3f.zip
Merge pull request #4253 from jamesqo/faulty-trues
Fix a couple of erroneous assert(trues)
Diffstat (limited to 'src')
-rw-r--r--src/mscorlib/corefx/System/Globalization/DateTimeFormatInfo.cs4
-rw-r--r--src/mscorlib/src/System/Globalization/DateTimeFormatInfo.cs4
-rw-r--r--src/mscorlib/src/System/RtType.cs2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/mscorlib/corefx/System/Globalization/DateTimeFormatInfo.cs b/src/mscorlib/corefx/System/Globalization/DateTimeFormatInfo.cs
index cec4b3290a..ca1caacef6 100644
--- a/src/mscorlib/corefx/System/Globalization/DateTimeFormatInfo.cs
+++ b/src/mscorlib/corefx/System/Globalization/DateTimeFormatInfo.cs
@@ -2712,7 +2712,7 @@ namespace System.Globalization
}
previousNode = temp;
};
- Contract.Assert(true, "The hashtable is full. This should not happen.");
+ Contract.Assert(false, "The hashtable is full. This should not happen.");
}
void InsertHash(TokenHashValue[] hashTable, String str, TokenType tokenType, int tokenValue)
@@ -2800,7 +2800,7 @@ namespace System.Globalization
hashcode += hashProbe;
if (hashcode >= TOKEN_HASH_SIZE) hashcode -= TOKEN_HASH_SIZE;
} while (i < TOKEN_HASH_SIZE);
- Contract.Assert(true, "The hashtable is full. This should not happen.");
+ Contract.Assert(false, "The hashtable is full. This should not happen.");
}
private bool CompareStringIgnoreCaseOptimized(string string1, int offset1, int length1, string string2, int offset2, int length2)
diff --git a/src/mscorlib/src/System/Globalization/DateTimeFormatInfo.cs b/src/mscorlib/src/System/Globalization/DateTimeFormatInfo.cs
index e911f0ec4e..9adbd660cd 100644
--- a/src/mscorlib/src/System/Globalization/DateTimeFormatInfo.cs
+++ b/src/mscorlib/src/System/Globalization/DateTimeFormatInfo.cs
@@ -2829,7 +2829,7 @@ namespace System.Globalization {
}
previousNode = temp;
} ;
- Contract.Assert(true, "The hashtable is full. This should not happen.");
+ Contract.Assert(false, "The hashtable is full. This should not happen.");
}
void InsertHash(TokenHashValue[] hashTable, String str, TokenType tokenType, int tokenValue) {
@@ -2922,7 +2922,7 @@ namespace System.Globalization {
hashcode += hashProbe;
if (hashcode >= TOKEN_HASH_SIZE) hashcode -= TOKEN_HASH_SIZE;
} while (i < TOKEN_HASH_SIZE);
- Contract.Assert(true, "The hashtable is full. This should not happen.");
+ Contract.Assert(false, "The hashtable is full. This should not happen.");
}
} // class DateTimeFormatInfo
diff --git a/src/mscorlib/src/System/RtType.cs b/src/mscorlib/src/System/RtType.cs
index 575e218b55..bc1032244b 100644
--- a/src/mscorlib/src/System/RtType.cs
+++ b/src/mscorlib/src/System/RtType.cs
@@ -405,7 +405,7 @@ namespace System
list = PopulateInterfaces(filter);
break;
default:
- BCLDebug.Assert(true, "Invalid CacheType");
+ BCLDebug.Assert(false, "Invalid CacheType");
break;
}