diff --git a/include/slang/util/SmallVector.h b/include/slang/util/SmallVector.h index e23e7444d..a8609465f 100644 --- a/include/slang/util/SmallVector.h +++ b/include/slang/util/SmallVector.h @@ -453,7 +453,7 @@ class SmallVectorBase { /// Indicates whether we are still "small", which means we are still on the stack. [[nodiscard]] constexpr bool isSmall() const noexcept { - return (void*)data_ == (void*)firstElement; + return (const void*)data_ == (const void*)firstElement; } protected: