diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:50 +0000 |
commit | def92d1b8e9d373e2f6f27c366d578d97d8960c6 (patch) | |
tree | 2ef34b9ad8bb9a9220e05d60352558b15f513894 /other-licenses/snappy/01-explicit.patch | |
parent | Adding debian version 125.0.3-1. (diff) | |
download | firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.tar.xz firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.zip |
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'other-licenses/snappy/01-explicit.patch')
-rw-r--r-- | other-licenses/snappy/01-explicit.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/other-licenses/snappy/01-explicit.patch b/other-licenses/snappy/01-explicit.patch new file mode 100644 index 0000000000..7aeb130014 --- /dev/null +++ b/other-licenses/snappy/01-explicit.patch @@ -0,0 +1,22 @@ +diff --git a/other-licenses/snappy/src/snappy.h b/other-licenses/snappy/src/snappy.h +--- a/other-licenses/snappy/src/snappy.h ++++ b/other-licenses/snappy/src/snappy.h +@@ -60,17 +60,17 @@ namespace snappy { + // 9 in the future. + // If you played with other compression algorithms, level 1 is equivalent to + // fast mode (level 1) of LZ4, level 2 is equivalent to LZ4's level 2 mode + // and compresses somewhere around zstd:-3 and zstd:-2 but generally with + // faster decompression speeds than snappy:1 and zstd:-3. + int level = DefaultCompressionLevel(); + + constexpr CompressionOptions() = default; +- constexpr CompressionOptions(int compression_level) ++ constexpr explicit CompressionOptions(int compression_level) + : level(compression_level) {} + static constexpr int MinCompressionLevel() { return 1; } + static constexpr int MaxCompressionLevel() { return 2; } + static constexpr int DefaultCompressionLevel() { return 1; } + }; + + // ------------------------------------------------------------------------ + // Generic compression/decompression routines. |