From ded85a159fb371446b528dfc3de52ed564ba69fc Mon Sep 17 00:00:00 2001 From: MikePopoloski Date: Mon, 24 Jul 2023 21:46:16 -0400 Subject: [PATCH] Fix clang warning --- include/slang/util/SmallVector.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/slang/util/SmallVector.h b/include/slang/util/SmallVector.h index 26dcdbd38..e23e7444d 100644 --- a/include/slang/util/SmallVector.h +++ b/include/slang/util/SmallVector.h @@ -320,7 +320,10 @@ class SmallVectorBase { std::uninitialized_move(result, end(), begin() + newSize - existingOverlap); // Copy in the new elements. - first = std::ranges::copy_n(first, existingOverlap, result).in; + first = std::ranges::copy_n(first, + static_cast>(existingOverlap), + result) + .in; // Insert the non-overwritten middle part. std::ranges::uninitialized_copy(first, last, end(), end() + numElems - existingOverlap);