From d91d1dda2ad1219b3b798eafc14151811ed9a1b3 Mon Sep 17 00:00:00 2001 From: bptato Date: Thu, 28 Dec 2023 21:19:21 +0100 Subject: Compile with styleCheck:usages much better --- src/utils/endians.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils') diff --git a/src/utils/endians.nim b/src/utils/endians.nim index ea34efa7..e716ba8b 100644 --- a/src/utils/endians.nim +++ b/src/utils/endians.nim @@ -24,7 +24,7 @@ else: (u shl 24) proc fromBytesBEu32*(x: openArray[uint8]): uint32 {.inline.} = - var u {.noInit.}: uint32 + var u {.noinit.}: uint32 copyMem(addr u, unsafeAddr x[0], sizeof(uint32)) when system.cpuEndian == littleEndian: return swap(u) -- cgit 1.4.1-2-gfad0