aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-12-02 09:47:49 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-12-02 09:47:49 +0800
commit0152955132ce7575dab7196b956a2dde8ef83018 (patch)
treec6d940e2d232f4295d76762cdae4ad7cebd849c3
parente97eca1801f2dda0e7108e086b9122949d3a40ae (diff)
downloaddexon-mcl-0152955132ce7575dab7196b956a2dde8ef83018.tar.gz
dexon-mcl-0152955132ce7575dab7196b956a2dde8ef83018.tar.zst
dexon-mcl-0152955132ce7575dab7196b956a2dde8ef83018.zip
fix GT operations
-rw-r--r--ffi/cs/bn256.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/ffi/cs/bn256.cs b/ffi/cs/bn256.cs
index 5ef2edb..8bd0200 100644
--- a/ffi/cs/bn256.cs
+++ b/ffi/cs/bn256.cs
@@ -3,7 +3,7 @@ using System.Text;
using System.Runtime.InteropServices;
namespace mcl {
- class BN256 {
+ public class BN256 {
[DllImport("mclBn256.dll")]
public static extern int mclBn_init(int curve, int maxUnitSize);
[DllImport("mclBn256.dll")]
@@ -410,19 +410,19 @@ namespace mcl {
}
public void Add(GT x, GT y)
{
- mclBnGT_add(ref this, ref x, ref this);
+ mclBnGT_add(ref this, ref x, ref y);
}
public void Sub(GT x, GT y)
{
- mclBnGT_sub(ref this, ref x, ref this);
+ mclBnGT_sub(ref this, ref x, ref y);
}
public void Mul(GT x, GT y)
{
- mclBnGT_mul(ref this, ref x, ref this);
+ mclBnGT_mul(ref this, ref x, ref y);
}
public void Div(GT x, GT y)
{
- mclBnGT_div(ref this, ref x, ref this);
+ mclBnGT_div(ref this, ref x, ref y);
}
public static GT operator -(GT x)
{