From: Chris Duncan Date: Sat, 26 Sep 2026 08:32:49 +0000 (-0700) Subject: Fix endian check. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=13544ec62ddf3dcecca56bfb036dfbf31a3a24db;p=nano25519.git Fix endian check. --- diff --git a/src/lib/primordials.ts b/src/lib/primordials.ts index 5282fef..6c67d63 100644 --- a/src/lib/primordials.ts +++ b/src/lib/primordials.ts @@ -46,7 +46,7 @@ export type Bytes = Uint8Array export type Words = Uint32Array export type View = DataView export const isArray = Array.isArray -export const isLE = new Uint8Array(new Uint32Array([1]).buffer)[0] !== 1 +export const isLE = new Uint8Array(new Uint32Array([1]).buffer)[0] === 1 /** `TypedArray` constructors, bound before anything can replace the globals. */ const Bytes = Uint8Array