Skip to content

Commit

Permalink
fix:zstd normalize compress level
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-Cheng committed Jan 31, 2024
1 parent 5d02ce2 commit 3064676
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zstd.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ func AppendZstdBytesLevel(dst, src []byte, level int) []byte {
}

func WriteZstdLevel(w io.Writer, p []byte, level int) (int, error) {
level = normalizeZstdCompressLevel(level)
switch w.(type) {
case *byteSliceWriter,
*bytes.Buffer,
Expand Down

0 comments on commit 3064676

Please sign in to comment.