fix: correct C bool comparison in blake3 CGO

- Use bool() cast instead of != 0 for C bool type
This commit is contained in:
Zach Kelling
2026-01-09 14:50:50 -08:00
parent 9e3e366e81
commit f8d6865bfc
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"errors"
"fmt"
"crypto/chacha20poly1305"
"golang.org/x/crypto/chacha20poly1305"
)
// AeadID identifies an AEAD algorithm
+1 -1
View File
@@ -42,7 +42,7 @@ const (
var (
// useGPU indicates if GPU acceleration is available
useGPU = C.crypto_gpu_available() != 0
useGPU = bool(C.crypto_gpu_available())
)
// GPUAvailable returns true if GPU acceleration is available.
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"crypto/subtle"
"errors"
"crypto/curve25519"
"golang.org/x/crypto/curve25519"
)
// X25519Impl implements X25519 as a KEM