diff --git a/src/amd/compiler/aco_util.h b/src/amd/compiler/aco_util.h index 8d4c4d390f0..b04eaba55a1 100644 --- a/src/amd/compiler/aco_util.h +++ b/src/amd/compiler/aco_util.h @@ -65,14 +65,14 @@ public: * \return data */ constexpr iterator begin() noexcept { - return (pointer)((char*)this + offset); + return (pointer)((uintptr_t)this + offset); } /*! \brief Returns a const_iterator to the begin of the span * \return data */ constexpr const_iterator begin() const noexcept { - return (const_pointer)((const char *)this + offset); + return (const_pointer)((uintptr_t)this + offset); } /*! \brief Returns an iterator to the end of the span