aboutsummaryrefslogtreecommitdiffstats
path: root/go/blscgo
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-04-10 06:58:05 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-04-10 06:58:05 +0800
commitfb2abdeec5ce179e70c198ffd500272ba0c33e13 (patch)
tree1f6554288bdc6058a30f556b3634a88f3bea2270 /go/blscgo
parent523fe6a83492775f50dfd3c3adbf9699e7fc8e1e (diff)
downloaddexon-bls-fb2abdeec5ce179e70c198ffd500272ba0c33e13.tar
dexon-bls-fb2abdeec5ce179e70c198ffd500272ba0c33e13.tar.gz
dexon-bls-fb2abdeec5ce179e70c198ffd500272ba0c33e13.tar.bz2
dexon-bls-fb2abdeec5ce179e70c198ffd500272ba0c33e13.tar.lz
dexon-bls-fb2abdeec5ce179e70c198ffd500272ba0c33e13.tar.xz
dexon-bls-fb2abdeec5ce179e70c198ffd500272ba0c33e13.tar.zst
dexon-bls-fb2abdeec5ce179e70c198ffd500272ba0c33e13.zip
fix fmt
Diffstat (limited to 'go/blscgo')
-rw-r--r--go/blscgo/bls.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/go/blscgo/bls.go b/go/blscgo/bls.go
index 009ab20..ae16a4c 100644
--- a/go/blscgo/bls.go
+++ b/go/blscgo/bls.go
@@ -242,7 +242,7 @@ func (sec *PublicKey) GetData() []byte {
fpSize := GetOpUnitSize() * 8
buf := make([]byte, fpSize*2)
n := C.blsPublicKeyGetData(sec.getPointer(), (*C.char)(unsafe.Pointer(&buf[0])), C.size_t(len(buf)))
- if n != C.size_t(fpSize * 2) {
+ if n != C.size_t(fpSize*2) {
panic("implementation err. size of buf is small")
}
return buf