diff --git a/external/asmjit/asmjit/src/asmjit/core/zonestack.h b/external/asmjit/asmjit/src/asmjit/core/zonestack.h index 2cf078b3d21..16d5d09dbc1 100644 --- a/external/asmjit/asmjit/src/asmjit/core/zonestack.h +++ b/external/asmjit/asmjit/src/asmjit/core/zonestack.h @@ -62,7 +62,9 @@ class ZoneStackBase { ASMJIT_INLINE_NODEBUG void setEnd(T* end) noexcept { _end = (void*)end; } template - ASMJIT_INLINE_NODEBUG T* data() const noexcept { return (T*)((uint8_t*)(this) + sizeof(Block)); } + ASMJIT_INLINE_NODEBUG const T* data() const noexcept { return (const T*)((const uint8_t*)(this) + sizeof(Block)); } + template + ASMJIT_INLINE_NODEBUG T* data() noexcept { return (T*)((uint8_t*)(this) + sizeof(Block)); } template ASMJIT_INLINE_NODEBUG bool canPrepend() const noexcept { return _start > data(); }