diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-06-14 04:49:56 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-06-14 04:49:56 +0800 |
commit | 32eb1b3aa4b924985db2de7265be1fa64f9df35d (patch) | |
tree | 957f011f7ce270f7b131a9f1b68d437ae9b992c2 | |
parent | e860fab3bdd01a8953eb4a94645aea0d1070446e (diff) | |
download | dexon-bls-32eb1b3aa4b924985db2de7265be1fa64f9df35d.tar dexon-bls-32eb1b3aa4b924985db2de7265be1fa64f9df35d.tar.gz dexon-bls-32eb1b3aa4b924985db2de7265be1fa64f9df35d.tar.bz2 dexon-bls-32eb1b3aa4b924985db2de7265be1fa64f9df35d.tar.lz dexon-bls-32eb1b3aa4b924985db2de7265be1fa64f9df35d.tar.xz dexon-bls-32eb1b3aa4b924985db2de7265be1fa64f9df35d.tar.zst dexon-bls-32eb1b3aa4b924985db2de7265be1fa64f9df35d.zip |
fix Fr/Gt.IsOne
-rw-r--r-- | go/bls/mcl.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/go/bls/mcl.go b/go/bls/mcl.go index 0e3a09e..b8130e2 100644 --- a/go/bls/mcl.go +++ b/go/bls/mcl.go @@ -118,7 +118,7 @@ func (x *Fr) IsZero() bool { } // IsOne -- -func (x *Fr) IsOne(rhs *Fr) bool { +func (x *Fr) IsOne() bool { return C.mclBnFr_isOne(x.getPointer()) == 1 } @@ -452,7 +452,7 @@ func (x *GT) IsZero() bool { } // IsOne -- -func (x *GT) IsOne(rhs *GT) bool { +func (x *GT) IsOne() bool { return C.mclBnGT_isOne(x.getPointer()) == 1 } |