From 634c7b097b899ac55a716c56529e78b73b6abcbd Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 6 Jun 2024 12:55:31 +0300 Subject: [PATCH] mi-builder: c++ warning fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lionel Landwerlin Reviewed-by: José Roberto de Souza Part-of: --- src/intel/common/mi_builder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/common/mi_builder.h b/src/intel/common/mi_builder.h index 0d8b30ba856..9b0f54a781a 100644 --- a/src/intel/common/mi_builder.h +++ b/src/intel/common/mi_builder.h @@ -1206,7 +1206,7 @@ mi_store_relocated_address_reg64(struct mi_builder *b, struct mi_value addr_reg) const unsigned addr_dw = GENX(MI_STORE_REGISTER_MEM_MemoryAddress_start) / 8; - token.ptrs[i] = (void *)_dst + addr_dw; + token.ptrs[i] = (uint64_t *)((uint8_t *)_dst + addr_dw); } }