From 08b0896a42a17b3f389ceb6d8cbca7d068f174bc Mon Sep 17 00:00:00 2001 From: Marlene Cota <1422161+marlenecota@users.noreply.github.com> Date: Wed, 5 Jun 2024 14:51:35 -0700 Subject: [PATCH] fix signed/unsigned mismatch --- .../react/performance/timeline/BoundedConsumableBuffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/ReactCommon/react/performance/timeline/BoundedConsumableBuffer.h b/packages/react-native/ReactCommon/react/performance/timeline/BoundedConsumableBuffer.h index 8e695012b2aa9d..2918436fccd14e 100644 --- a/packages/react-native/ReactCommon/react/performance/timeline/BoundedConsumableBuffer.h +++ b/packages/react-native/ReactCommon/react/performance/timeline/BoundedConsumableBuffer.h @@ -179,7 +179,7 @@ class BoundedConsumableBuffer { void getEntries(std::vector& res, std::function predicate) const { - for (int i = 0; i < entries_.size(); i++) { + for (size_t i = 0; i < entries_.size(); i++) { const T& el = entries_[(i + position_) % entries_.size()]; if (predicate(el)) { res.push_back(el);