summaryrefslogtreecommitdiff
path: root/chromium-124-size_t.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-09-25 09:55:25 +0000
committerCoprDistGit <infra@openeuler.org>2024-09-25 09:55:25 +0000
commit8fe37c454512853c40108c2c0d19c2d39d15af19 (patch)
treeaefee73b38da5be91c6d7b3a2e1ba13848f41938 /chromium-124-size_t.patch
parent0dc651d979e28d3c6b3e380b056741946893de1d (diff)
automatic import of chromiumopeneuler20.03
Diffstat (limited to 'chromium-124-size_t.patch')
-rw-r--r--chromium-124-size_t.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/chromium-124-size_t.patch b/chromium-124-size_t.patch
new file mode 100644
index 0000000..3ca84ee
--- /dev/null
+++ b/chromium-124-size_t.patch
@@ -0,0 +1,16 @@
+diff -up chromium-124.0.6367.118/third_party/perfetto/src/tracing/core/id_allocator.h.me chromium-124.0.6367.118/third_party/perfetto/src/tracing/core/id_allocator.h
+--- chromium-124.0.6367.118/third_party/perfetto/src/tracing/core/id_allocator.h.me 2024-05-06 08:32:09.637210958 +0200
++++ chromium-124.0.6367.118/third_party/perfetto/src/tracing/core/id_allocator.h 2024-05-06 08:32:26.485518448 +0200
+@@ -63,10 +63,10 @@ class IdAllocator : public IdAllocatorGe
+
+ // Tries to allocate `n` IDs. Returns a vector of `n` valid IDs or an empty
+ // vector, if not enough IDs are available.
+- std::vector<T> AllocateMultiple(size_t n) {
++ std::vector<T> AllocateMultiple(std::size_t n) {
+ std::vector<T> res;
+ res.reserve(n);
+- for (size_t i = 0; i < n; i++) {
++ for (std::size_t i = 0; i < n; i++) {
+ T id = Allocate();
+ if (id) {
+ res.push_back(id);