Skip to content

Commit e1d3aa0

Browse files
committed
Fix signature output for type definitions (#37)
Signed-off-by: José Simões <[email protected]>
1 parent c0edfa8 commit e1d3aa0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/MetadataProcessor.Core/Tables/nanoSignaturesTable.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,13 @@ public void WriteDataType(
245245
return;
246246
}
247247

248+
nanoCLR_DataType dataType;
249+
if (PrimitiveTypes.TryGetValue(typeDefinition.FullName, out dataType))
250+
{
251+
writer.WriteByte((byte)dataType);
252+
return;
253+
}
254+
248255
if (typeDefinition is TypeSpecification)
249256
{
250257
//Debug.Fail("Gotcha!");

0 commit comments

Comments
 (0)