Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Commit a6ab346

Browse files
committed
Updated Position type to 64 bit
1 parent 086361a commit a6ab346

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Visual Studio Project Template C#/PluginInfrastructure/GatewayDomain.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,17 @@ public int Value
6262
/// </summary>
6363
public class Position : IEquatable<Position>
6464
{
65-
private readonly int pos;
65+
private readonly Int64 pos;
6666

67-
public Position(int pos)
67+
public Position(IntPtr ptr) : this(ptr.ToInt64())
68+
{ }
69+
70+
public Position(Int64 pos)
6871
{
6972
this.pos = pos;
7073
}
7174

72-
public int Value
75+
public Int64 Value
7376
{
7477
get { return pos; }
7578
}
@@ -146,7 +149,7 @@ public override bool Equals(object obj)
146149

147150
public override int GetHashCode()
148151
{
149-
return pos;
152+
return pos.GetHashCode();
150153
}
151154
}
152155

0 commit comments

Comments
 (0)