Skip to content

Commit

Permalink
Merge pull request #7 from L1MeN9Yu/feature/lz4_1.9.4
Browse files Browse the repository at this point in the history
lz4 upgrade to 1.9.4
  • Loading branch information
L1MeN9Yu authored Jan 23, 2024
2 parents 6746147 + ac7bd66 commit c95092d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/ZSTD/API/ZSTD.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ extension ZSTD: CompressionCapable {
switch parameter {
case let .windowLogMax(value):
let resultCode: Int = ZSTD_DCtx_setParameter(decompressContext, ZSTD_d_windowLogMax, value)
guard ZSTD_isError(resultCode) == 0 else { throw Error.decoderCreate }
guard ZSTD_isError(resultCode) == 0 else { throw Error.setParameter }
}
}
}
Expand Down
1 change: 1 addition & 0 deletions Sources/ZSTD/Types/ZSTD.Error.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public extension ZSTD {
enum Error: Swift.Error {
case encoderCreate
case decoderCreate
case setParameter
case compress
case decompress
case invalidData
Expand Down
2 changes: 1 addition & 1 deletion Submodule/lz4
Submodule lz4 updated 116 files

0 comments on commit c95092d

Please sign in to comment.