[polypaudio-commits] r619 - /trunk/src/polyp/stream.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Thu Mar 2 08:37:37 PST 2006


Author: ossman
Date: Thu Mar  2 17:37:35 2006
New Revision: 619

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=619&root=polypaudio&view=rev
Log:
Fix warnings on 64-bit systems.

Modified:
    trunk/src/polyp/stream.c

Modified: trunk/src/polyp/stream.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polyp/stream.c?rev=619&root=polypaudio&r1=618&r2=619&view=diff
==============================================================================
--- trunk/src/polyp/stream.c (original)
+++ trunk/src/polyp/stream.c Thu Mar  2 17:37:35 2006
@@ -629,8 +629,8 @@
     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 @@
 
     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);
 }




More information about the pulseaudio-commits mailing list