We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 416a22f commit b385842Copy full SHA for b385842
source/MetadataProcessor.Core/nanoSkeletonGenerator.cs
@@ -177,7 +177,6 @@ private void GenerateAssemblyHeader()
177
// static fields
178
int fieldCount = 0;
179
var staticFields = c.Fields.Where(f => f.IsStatic && !f.HasConstant);
180
- staticFieldCount += staticFields.Count();
181
182
foreach (var f in staticFields)
183
{
@@ -188,6 +187,9 @@ private void GenerateAssemblyHeader()
188
187
});
189
}
190
+ // update static field counter
191
+ staticFieldCount += staticFields.Count();
192
+
193
int firstInstanceFieldId = GetInstanceFieldsOffset(c);
194
195
// 0 based index, need to add 1
0 commit comments