This commit is contained in:
zah 2020-09-18 19:34:13 +03:00 committed by GitHub
parent ea4ec6a785
commit 7c688bffda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ func loadLEBytes(WordType: type, bytes: openarray[byte]): WordType =
shift += 8
func storeLEBytes(value: SomeUnsignedInt, dst: var openarray[byte]) =
doAssert dst.len <= sizeof(value)
when system.cpuEndian == bigEndian:
var shift = 0
for i in 0 ..< dst.len: