Don't forget to exit when dumpingraw integer
This commit is contained in:
parent
a389e5c38c
commit
08ed81af34
|
@ -133,7 +133,7 @@ func dumpRawUintLE(
|
||||||
dst_idx += sizeof(Word)
|
dst_idx += sizeof(Word)
|
||||||
tail -= sizeof(Word)
|
tail -= sizeof(Word)
|
||||||
else:
|
else:
|
||||||
# Process the tail
|
# Process the tail and exit
|
||||||
when cpuEndian == littleEndian:
|
when cpuEndian == littleEndian:
|
||||||
# When requesting little-endian on little-endian platform
|
# When requesting little-endian on little-endian platform
|
||||||
# we can just copy each byte
|
# we can just copy each byte
|
||||||
|
@ -143,6 +143,7 @@ func dumpRawUintLE(
|
||||||
# We need to copy from the end
|
# We need to copy from the end
|
||||||
for i in 0 ..< tail:
|
for i in 0 ..< tail:
|
||||||
dst[dst_idx] = byte(lo shr (tail-i))
|
dst[dst_idx] = byte(lo shr (tail-i))
|
||||||
|
return
|
||||||
|
|
||||||
func dumpRawUint*(
|
func dumpRawUint*(
|
||||||
dst: var openarray[byte],
|
dst: var openarray[byte],
|
||||||
|
|
Loading…
Reference in New Issue