]> git.codecow.com Git - nano25519.git/commitdiff
Fix endian check.
authorChris Duncan <chris@codecow.com>
Sat, 26 Sep 2026 08:32:49 +0000 (01:32 -0700)
committerChris Duncan <chris@codecow.com>
Sat, 26 Sep 2026 08:32:49 +0000 (01:32 -0700)
src/lib/primordials.ts

index 5282fef1946469c8ab1dcfe736b10dc6288d5d9a..6c67d63f47e4a917ff4e1a834c6efd19cbd7a599 100644 (file)
@@ -46,7 +46,7 @@ export type Bytes = Uint8Array<ArrayBuffer>
 export type Words = Uint32Array<ArrayBuffer>
 export type View = DataView<ArrayBuffer>
 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