Skip to content

Commit

Permalink
small
Browse files Browse the repository at this point in the history
  • Loading branch information
guzba committed Nov 8, 2020
1 parent 996b7a8 commit c3af3cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func compress(src: openArray[uint8]; dst: var seq[uint8]) {.raises: [SnappyError

## **func** compress

Compresses src and returns the compressed data seq.
Compresses src and returns the compressed data.

```nim
func compress(src: openArray[uint8]): seq[uint8] {.inline, raises: [SnappyError].}
Expand Down
4 changes: 2 additions & 2 deletions supersnappy.nim
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ func compress*(src: openArray[uint8], dst: var seq[uint8]) =
## Compresses src into dst. This resizes dst as needed and starts writing
## at dst index 0.

when int.sizeof>4:
when sizeof(int) > 4:
if src.len > high(uint32).int:
failCompress()

Expand All @@ -422,7 +422,7 @@ func compress*(src: openArray[uint8], dst: var seq[uint8]) =
dst.setLen(op)

func compress*(src: openArray[uint8]): seq[uint8] {.inline.} =
## Compresses src and returns the compressed data seq.
## Compresses src and returns the compressed data.
compress(src, result)

template uncompress*(src: string): string =
Expand Down
2 changes: 1 addition & 1 deletion supersnappy.nimble
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
packageName = "supersnappy"
version = "1.1.1"
version = "1.1.2"
author = "Ryan Oldenburg"
description = "Nim implementation of Google's Snappy compression."
license = "MIT"
Expand Down

0 comments on commit c3af3cf

Please sign in to comment.