winenas.drv: Avoid a warning in a trace on x86_64 [try 2]
Alexandre Goujon
ale.goujon at gmail.com
Sat Jun 11 07:30:29 CDT 2011
This time, I tested the patch in a 32 and 64 build tree.
num_bytes is if type AuUint32 which is typedef'ed from CARD32 in audio/audio.h.
The following http://lists.x.org/archives/xorg-devel/2009-October/002399.html is worth reading.
---
dlls/winenas.drv/audio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winenas.drv/audio.c b/dlls/winenas.drv/audio.c
index a5768fa..4b63ea1 100644
--- a/dlls/winenas.drv/audio.c
+++ b/dlls/winenas.drv/audio.c
@@ -1360,7 +1360,7 @@ event_handler(AuServer* aud, AuEvent* ev, AuEventHandlerRec* hnd)
nas_state(event->prev_state),
nas_state(event->cur_state),
nas_reason(event->reason),
- event->num_bytes, wwo->freeBytes);
+ (long)event->num_bytes, wwo->freeBytes);
if (event->cur_state == AuStatePause && event->reason != AuReasonUser) {
wwo->freeBytes += event->num_bytes;
--
1.7.4.1
More information about the wine-patches
mailing list