From: Chris Duncan Date: Thu, 27 Aug 2026 07:01:08 +0000 (-0700) Subject: Fix exit code treated as Boolean. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=6bae2ec67cb7036cec6fa8dab7444eea9981dc6b;p=nano25519.git Fix exit code treated as Boolean. --- diff --git a/src/assembly/index.ts b/src/assembly/index.ts index fcf62ad..c3c9c2b 100644 --- a/src/assembly/index.ts +++ b/src/assembly/index.ts @@ -199,7 +199,7 @@ export function verify_blocks (count: i32): void { OUTPUT_BUFFER.fill(255) // Verify public key before proceeding with signature verification - if (crypto_verify_pubkey(verify_blocks_pub)) { + if (crypto_verify_pubkey(verify_blocks_pub) == 0) { // Iterate over block hash/signature pairs for (let i = 0; i < count; i++) {