summaryrefslogtreecommitdiffstats
path: root/src/polyp
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-03-02 16:37:35 +0000
committerPierre Ossman <ossman@cendio.se>2006-03-02 16:37:35 +0000
commit50268e0dd06f92da3d25137b78ddfa438e4d62de (patch)
tree7fbd7b7b697946f3ab3aaab88ca8752e96f575d1 /src/polyp
parent6cc11fbfc3094cdda5502ef9374104f1d481ab71 (diff)
Fix warnings on 64-bit systems.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@619 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/polyp')
-rw-r--r--src/polyp/stream.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/polyp/stream.c b/src/polyp/stream.c
index 3ac026f1..1257f7e6 100644
--- a/src/polyp/stream.c
+++ b/src/polyp/stream.c
@@ -629,8 +629,8 @@ static void stream_get_latency_info_callback(pa_pdispatch *pd, uint32_t command,
assert(o->stream);
assert(o->context);
- i.counter = *(uint64_t*)pa_hashmap_get(o->stream->counter_hashmap, (void*)tag);
- pa_xfree(pa_hashmap_remove(o->stream->counter_hashmap, (void*)tag));
+ i.counter = *(uint64_t*)pa_hashmap_get(o->stream->counter_hashmap, (void*)(unsigned long)tag);
+ pa_xfree(pa_hashmap_remove(o->stream->counter_hashmap, (void*)(unsigned long)tag));
if (command != PA_COMMAND_REPLY) {
if (pa_context_handle_error(o->context, command, t) < 0)
@@ -719,7 +719,7 @@ pa_operation* pa_stream_get_latency_info(pa_stream *s, pa_stream_get_latency_inf
counter = pa_xmalloc(sizeof(uint64_t));
*counter = s->counter;
- pa_hashmap_put(s->counter_hashmap, (void*)tag, counter);
+ pa_hashmap_put(s->counter_hashmap, (void*)(unsigned long)tag, counter);
return pa_operation_ref(o);
}