Skip to content

Commit

Permalink
65534 is actually the highest version. Fixes #150
Browse files Browse the repository at this point in the history
Signed-off-by: Jerome Haltom <[email protected]>
  • Loading branch information
wasabii authored Apr 3, 2024
1 parent 29bad2b commit 9c30f9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IKVM.MSBuild.Tasks/IkvmReferenceItemPrepare.cs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ static Version ToAssemblyVersion(ModuleVersion version)
/// <returns></returns>
static int? GetAssemblyVersionComponent(ModuleVersion version, int index)
{
return version.Number.Count > index && version.Number[index] is int i ? Math.Min(i, ushort.MaxValue) : null;
return version.Number.Count > index && version.Number[index] is int i ? Math.Min(i, ushort.MaxValue - 1) : null;
}

/// <summary>
Expand Down

0 comments on commit 9c30f9e

Please sign in to comment.