aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Foss <[email protected]>2018-05-04 17:05:13 +0200
committerRobert Foss <[email protected]>2018-06-25 18:54:09 +0200
commit5a34aba07de19d12928177622cf87cdd4b7fef1a (patch)
treec8a9e9b8b7a940fed901f0f96c90a28621f5038d
parent07cb1373a23042de6904e918419bfa3963695795 (diff)
gallium/util: Fix build error due to cast to different size
Signed-off-by: Robert Foss <[email protected]> Reviewed-by: Tomasz Figa <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r--src/gallium/auxiliary/util/u_debug_stack_android.cpp4
1 files 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 b3d56aebe6b..395a1fe9119 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;
}