Skip to content

Commit

Permalink
test old behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
euanh committed Dec 4, 2024
1 parent b7abac8 commit 5f4b9d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/containertool/gzip.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,17 @@ func gzip(_ bytes: [UInt8]) -> [UInt8] {
// compressed output for the same input, but using the same default
// value removes one one source of differences between platforms.

/*
let gz_os_unknown = Int32(255)
var header = gz_header()
header.os = gz_os_unknown
*/

let windowBits: Int32 = 15 + 16
let level = Z_DEFAULT_COMPRESSION
let memLevel: Int32 = 8
let rc = CNIOExtrasZlib_deflateInit2(&stream, level, Z_DEFLATED, windowBits, memLevel, Z_DEFAULT_STRATEGY)
deflateSetHeader(&stream, &header)
// deflateSetHeader(&stream, &header)

precondition(rc == Z_OK, "Unexpected return from zlib init: \(rc)")

Expand Down

0 comments on commit 5f4b9d9

Please sign in to comment.