diff options
author | jfrijters <jfrijters> | 2010-04-18 12:58:19 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2010-04-18 12:58:19 +0400 |
commit | 0f2ade7ce07d37cee48ff6d14804d82caca9dc7d (patch) | |
tree | 9b6185324867c6b37b9491aef71849bf05e4f7d2 /reflect/Metadata | |
parent | 1a771a9ccdfc40d909e1a565eddad82328e67494 (diff) |
Version parts should be treated as unsigned.
Diffstat (limited to 'reflect/Metadata')
-rw-r--r-- | reflect/Metadata/Tables.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/reflect/Metadata/Tables.cs b/reflect/Metadata/Tables.cs index fc4571cb..b6ba2586 100644 --- a/reflect/Metadata/Tables.cs +++ b/reflect/Metadata/Tables.cs @@ -1980,10 +1980,10 @@ namespace IKVM.Reflection.Metadata internal struct Record { - internal short MajorVersion; - internal short MinorVersion; - internal short BuildNumber; - internal short RevisionNumber; + internal ushort MajorVersion; + internal ushort MinorVersion; + internal ushort BuildNumber; + internal ushort RevisionNumber; internal int Flags; internal int PublicKeyOrToken; internal int Name; @@ -1995,10 +1995,10 @@ namespace IKVM.Reflection.Metadata { for (int i = 0; i < records.Length; i++) { - records[i].MajorVersion = mr.ReadInt16(); - records[i].MinorVersion = mr.ReadInt16(); - records[i].BuildNumber = mr.ReadInt16(); - records[i].RevisionNumber = mr.ReadInt16(); + records[i].MajorVersion = mr.ReadUInt16(); + records[i].MinorVersion = mr.ReadUInt16(); + records[i].BuildNumber = mr.ReadUInt16(); + records[i].RevisionNumber = mr.ReadUInt16(); records[i].Flags = mr.ReadInt32(); records[i].PublicKeyOrToken = mr.ReadBlobIndex(); records[i].Name = mr.ReadStringIndex(); |