Skip to content

Fix import, typo, and redundant parentheses #252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions bindings/go/blst.tgo
Original file line number Diff line number Diff line change
@@ -151,6 +151,8 @@ import "C"

import "runtime"

import "fmt"

const BLST_SCALAR_BYTES = 256 / 8
const BLST_FP_BYTES = 384 / 8
const BLST_P1_COMPRESS_BYTES = BLST_FP_BYTES
@@ -205,7 +207,7 @@ func SetMaxProcs(procs int) {
func numThreads(maxThreads int) int {
numThreads := maxProcs

// take into consideration the possility that application reduced
// take into consideration the possibility that application reduced
// GOMAXPROCS after |maxProcs| was initialized
numProcs := runtime.GOMAXPROCS(0)
if maxProcs > numProcs {
@@ -364,7 +366,7 @@ func PairingAsFp12(ctx Pairing) *Fp12 {
}

func (pt *Fp12) asPtr() *C.blst_fp12 {
if (pt != nil) {
if pt != nil {
return &pt.cgo
}