Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
guzba committed Jun 12, 2022
1 parent c57a8eb commit 3d20dfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/supersnappy.nim
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ func emitCopy64Max(dst: var string, op: var uint, offset, len: uint) =
dst[op + 0] = ((tmp shl 0) and 255).char
dst[op + 1] = ((tmp shr 8) and 255).char
else:
cast[ptr uint16](dst[op].addr)[] = offset.uint16
var offset = offset.uint16
copyMem(dst[op].addr, offset.addr, 2)
op += 2

func emitCopy(dst: var string, op: var uint, offset, len: uint) =
Expand Down

0 comments on commit 3d20dfb

Please sign in to comment.