gallium/util: Fix build error due to cast to different size

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>
This commit is contained in:
Robert Foss 2018-05-04 17:05:13 +02:00
parent 07cb1373a2
commit 5a34aba07d
No known key found for this signature in database
GPG key ID: B79A0B6A11EEF727

View 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;
}