From: Chris Duncan Date: Wed, 13 Aug 2025 14:59:27 +0000 (-0700) Subject: Use typed array instead of generic. X-Git-Tag: v0.10.5~41^2~111 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=884cd7fc7598c507ace630bc061e0c16156cb23d;p=libnemo.git Use typed array instead of generic. --- diff --git a/src/lib/crypto/nano-nacl.ts b/src/lib/crypto/nano-nacl.ts index 43bc013..36ee056 100644 --- a/src/lib/crypto/nano-nacl.ts +++ b/src/lib/crypto/nano-nacl.ts @@ -183,7 +183,7 @@ export class NanoNaCl { static Square (o: Float64Array, a: Float64Array): void { let v, c const s = 1 << 16 - const t = new Array(31) + const t = new Float64Array(31) t.fill(0) // init t values, same as Multiply except we can skip some iterations of