Skip to content

Commit 1e05afc

Browse files
authored
Fix erroneous readonly on a mutable struct (#100996)
1 parent c9bb3e7 commit 1e05afc

File tree

1 file changed

+1
-1
lines changed
  • src/coreclr/nativeaot/Runtime.Base/src/System/Runtime

1 file changed

+1
-1
lines changed

src/coreclr/nativeaot/Runtime.Base/src/System/Runtime/TypeCast.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ internal static class TypeCast
3535
private const int MaximumCacheSize = 4096; // 4096 * sizeof(CastCacheEntry) is 98304 bytes on 64bit. We will rarely need this much though.
3636
#endif // DEBUG
3737

38-
private static readonly CastCache s_castCache = new CastCache(InitialCacheSize, MaximumCacheSize);
38+
private static CastCache s_castCache = new CastCache(InitialCacheSize, MaximumCacheSize);
3939

4040
[Flags]
4141
internal enum AssignmentVariation

0 commit comments

Comments
 (0)