summaryrefslogtreecommitdiff
path: root/util/cairo-trace/lookup-symbol.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/cairo-trace/lookup-symbol.c')
-rw-r--r--util/cairo-trace/lookup-symbol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cairo-trace/lookup-symbol.c b/util/cairo-trace/lookup-symbol.c
index 4bc1fac1a..3934066b9 100644
--- a/util/cairo-trace/lookup-symbol.c
+++ b/util/cairo-trace/lookup-symbol.c
@@ -262,7 +262,7 @@ lookup_symbol (char *buf, int buflen, const void *ptr)
int bucket;
int len;
- bucket = (unsigned long) ptr % (sizeof (symbol_cache_hash) / sizeof (symbol_cache_hash[0]));
+ bucket = (uintptr_t) ptr % (sizeof (symbol_cache_hash) / sizeof (symbol_cache_hash[0]));
pthread_mutex_lock (&symbol_cache_mutex);
for (cache = symbol_cache_hash[bucket];
cache != NULL;