From b889eeac40f175ef06c7302f3519243f86ef67b1 Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Wed, 30 Sep 2020 09:51:48 -0700 Subject: [PATCH] Change type of Resize capacity from int to size_t --- api/include/opentelemetry/context/runtime_context.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/include/opentelemetry/context/runtime_context.h b/api/include/opentelemetry/context/runtime_context.h index b987c7f98f..b2c65a0fe3 100644 --- a/api/include/opentelemetry/context/runtime_context.h +++ b/api/include/opentelemetry/context/runtime_context.h @@ -253,9 +253,9 @@ class ThreadLocalContextStorage : public RuntimeContextStorage } // Reallocates the storage array to the pass in new capacity size. - void Resize(int new_capacity) noexcept + void Resize(size_t new_capacity) noexcept { - int old_size = size_ - 1; + size_t old_size = size_ - 1; if (new_capacity == 0) { new_capacity = 2;