Skip to content

Commit 9149b49

Browse files
committed
Fix Secp256k1 on 64bit Linux
The bindings to the native library functions were incorrectly using C# uint in place of C's size_t. This was causing the library to segfault on 64bit linux due to C#'s uint being 32bit where C's size_t is 64bit. This commit changes these bindings to use UIntPtr as a closer approximation of size_t.
1 parent 3d01b58 commit 9149b49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Secp256k1.Net/Interop.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,4 +357,4 @@ public enum Flags : uint
357357
}
358358

359359

360-
}
360+
}

0 commit comments

Comments
 (0)