aco: improve sync_info for TCS output stores
[mesa.git] / src / amd / compiler / aco_util.h
index 8d4c4d390f016259783eb0f01ddc8d8b741225b0..b04eaba55a11f50c1f21fc507ee9d7701bdecefc 100644 (file)
@@ -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