Pass a `StringComparer` instance to `Dictionary` ctor

This commit is contained in:
wtfsck 2022-07-03 14:40:38 +02:00
parent af43714434
commit e657c5514f
1 changed files with 1 additions and 1 deletions

View File

@ -725,7 +725,7 @@ namespace Generator.Assembler.Java {
// Too many constants in the class file so split them up into multiple files...
void GenerateAssemblerTests(int bitness, OpCodeInfoGroup[] groups) {
var dict = new Dictionary<String, List<OpCodeInfoGroup>>();
var dict = new Dictionary<String, List<OpCodeInfoGroup>>(StringComparer.Ordinal);
foreach (var group in groups) {
var key = GetGroupId(group);
if (!dict.TryGetValue(key, out var list))