diff options
author | bptato <nincsnevem662@gmail.com> | 2023-12-28 21:19:21 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-12-28 21:23:26 +0100 |
commit | d91d1dda2ad1219b3b798eafc14151811ed9a1b3 (patch) | |
tree | f82d8da0763f0dbc62dedb2aa9aaa51114d2aad9 /src/utils | |
parent | b035e53d641d71fab89f92cd8d5188501be0d058 (diff) | |
download | chawan-d91d1dda2ad1219b3b798eafc14151811ed9a1b3.tar.gz |
Compile with styleCheck:usages
much better
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/endians.nim | 2 |
1 files changed, 1 insertions, 1 deletions
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) |