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;