Skip to content

Commit bc5f21d

Browse files
Update src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Value/EnumConverter.cs
Co-authored-by: Pranav Senthilnathan <[email protected]>
1 parent 53e5e10 commit bc5f21d

File tree

1 file changed

+1
-1
lines changed
  • src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Value

1 file changed

+1
-1
lines changed

src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Value/EnumConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ private static EnumFieldInfo[] TopologicalSortEnumFields(EnumFieldInfo[] enumFie
676676
return enumFields;
677677
}
678678

679-
var indices = new Tuple<int, int>[enumFields.Length];
679+
var indices = new (int negativePopCount, int index)[enumFields.Length];
680680
for (int i = 0; i < enumFields.Length; i++)
681681
{
682682
// we want values with more bits set to come first so negate the pop count

0 commit comments

Comments
 (0)