Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 669c722

Browse filesBrowse files
nodejs-github-botruyadorno
authored andcommitted
deps: update zlib to 1.3.0.1-motley-82a5fec
PR-URL: #55980 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent ed635c9 commit 669c722
Copy full SHA for 669c722

File tree

Expand file treeCollapse file tree

2 files changed

+6
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-5
lines changed
Open diff view settings
Collapse file

‎deps/zlib/google/zip_writer.cc‎

Copy file name to clipboardExpand all lines: deps/zlib/google/zip_writer.cc
+5-4Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "third_party/zlib/google/zip_writer.h"
66

77
#include <algorithm>
8+
#include <tuple>
89

910
#include "base/files/file.h"
1011
#include "base/logging.h"
@@ -193,8 +194,8 @@ bool ZipWriter::AddMixedEntries(Paths paths) {
193194
while (!paths.empty()) {
194195
// Work with chunks of 50 paths at most.
195196
const size_t n = std::min<size_t>(paths.size(), 50);
196-
const Paths relative_paths = paths.subspan(0, n);
197-
paths = paths.subspan(n, paths.size() - n);
197+
Paths relative_paths;
198+
std::tie(relative_paths, paths) = paths.split_at(n);
198199

199200
files.clear();
200201
if (!file_accessor_->Open(relative_paths, &files) || files.size() != n)
@@ -233,8 +234,8 @@ bool ZipWriter::AddFileEntries(Paths paths) {
233234
while (!paths.empty()) {
234235
// Work with chunks of 50 paths at most.
235236
const size_t n = std::min<size_t>(paths.size(), 50);
236-
const Paths relative_paths = paths.subspan(0, n);
237-
paths = paths.subspan(n, paths.size() - n);
237+
Paths relative_paths;
238+
std::tie(relative_paths, paths) = paths.split_at(n);
238239

239240
DCHECK_EQ(relative_paths.size(), n);
240241

Collapse file

‎src/zlib_version.h‎

Copy file name to clipboardExpand all lines: src/zlib_version.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
// Refer to tools/dep_updaters/update-zlib.sh
33
#ifndef SRC_ZLIB_VERSION_H_
44
#define SRC_ZLIB_VERSION_H_
5-
#define ZLIB_VERSION "1.3.0.1-motley-7e2e4d7"
5+
#define ZLIB_VERSION "1.3.0.1-motley-82a5fec"
66
#endif // SRC_ZLIB_VERSION_H_

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.