Skip to content

Commit

Permalink
arbcompress: compilation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tsahee committed Mar 25, 2024
1 parent bde6037 commit 6fb8939
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arbcompress/compress_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ func compressedBufferSizeFor(length int) int {
}

func CompressLevel(input []byte, level int) ([]byte, error) {
return Compress(input, level, EmptyDictionary)
return Compress(input, uint32(level), EmptyDictionary)
}
2 changes: 1 addition & 1 deletion arbcompress/native.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func CompressWell(input []byte) ([]byte, error) {
return Compress(input, LEVEL_WELL, EmptyDictionary)
}

func Compress(input []byte, level int, dictionary Dictionary) ([]byte, error) {
func Compress(input []byte, level uint32, dictionary Dictionary) ([]byte, error) {
maxSize := compressedBufferSizeFor(len(input))
output := make([]byte, maxSize)
outbuf := sliceToBuffer(output)
Expand Down

0 comments on commit 6fb8939

Please sign in to comment.