[Mesa-dev] [PATCH v4 1/3] gallium/util: Fix build error due to cast to different size
Marek Olšák
maraeo at gmail.com
Wed Jun 20 16:52:45 UTC 2018
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Wed, Jun 20, 2018 at 9:26 AM, Robert Foss <robert.foss at collabora.com> wrote:
> Signed-off-by: Robert Foss <robert.foss at collabora.com>
> Reviewed-by: Tomasz Figa <tfiga at chromium.org>
> ---
> Changes since v3:
> - Added r-b from Tomasz
>
> src/gallium/auxiliary/util/u_debug_stack_android.cpp | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/gallium/auxiliary/util/u_debug_stack_android.cpp b/src/gallium/auxiliary/util/u_debug_stack_android.cpp
> index b3d56aebe6..395a1fe911 100644
> --- a/src/gallium/auxiliary/util/u_debug_stack_android.cpp
> +++ b/src/gallium/auxiliary/util/u_debug_stack_android.cpp
> @@ -49,10 +49,10 @@ debug_backtrace_capture(debug_stack_frame *mesa_backtrace,
> backtrace_table = _mesa_hash_table_create(NULL, _mesa_hash_pointer,
> _mesa_key_pointer_equal);
>
> - backtrace_entry = _mesa_hash_table_search(backtrace_table, (void*) tid);
> + backtrace_entry = _mesa_hash_table_search(backtrace_table, (void*) (uintptr_t)tid);
> if (!backtrace_entry) {
> backtrace = Backtrace::Create(getpid(), tid);
> - _mesa_hash_table_insert(backtrace_table, (void*) tid, backtrace);
> + _mesa_hash_table_insert(backtrace_table, (void*) (uintptr_t)tid, backtrace);
> } else {
> backtrace = (Backtrace *) backtrace_entry->data;
> }
> --
> 2.17.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list