gallium/util: Fix build error due to cast to different size
authorRobert Foss <robert.foss@collabora.com>
Fri, 4 May 2018 15:05:13 +0000 (17:05 +0200)
committerRobert Foss <robert.foss@collabora.com>
Mon, 25 Jun 2018 16:54:09 +0000 (18:54 +0200)
Signed-off-by: Robert Foss <robert.foss@collabora.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_debug_stack_android.cpp

index b3d56aebe6bbb6e31d04f125d839a827eef7a419..395a1fe9119b34d3ca6783fe537d89937ce2f17b 100644 (file)
@@ -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;
    }