From ed09a166b6b3c48f1f1d85f9bfd77ef00a463088 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 12 May 2023 09:43:30 -0400 Subject: Fix implicit widening conversions --- include/ingen/AtomForge.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/ingen/AtomForge.hpp') diff --git a/include/ingen/AtomForge.hpp b/include/ingen/AtomForge.hpp index 81f36b5b..cf5a759d 100644 --- a/include/ingen/AtomForge.hpp +++ b/include/ingen/AtomForge.hpp @@ -76,7 +76,7 @@ private: /// Append some data and return a reference to its start intptr_t append(const void* data, uint32_t len) { // Record offset of the start of this write (+1 to avoid null) - const intptr_t ref = _size + 1; + const auto ref = static_cast(_size + 1U); // Update size and reallocate if necessary if (lv2_atom_pad_size(_size + len) > _capacity) { -- cgit v1.2.1