Andrew Talbot : dsound: Sign-compare warnings fix.
Alexandre Julliard
julliard at winehq.org
Wed Oct 1 14:09:24 CDT 2008
Module: wine
Branch: master
Commit: 3fae4082efba44a3f48805a19c8bb07ed9e03701
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3fae4082efba44a3f48805a19c8bb07ed9e03701
Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date: Tue Sep 30 20:41:08 2008 +0100
dsound: Sign-compare warnings fix.
---
dlls/dsound/capture.c | 2 +-
dlls/dsound/mixer.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/dsound/capture.c b/dlls/dsound/capture.c
index 7cf7b83..d84a8fe 100644
--- a/dlls/dsound/capture.c
+++ b/dlls/dsound/capture.c
@@ -386,7 +386,7 @@ DirectSoundCaptureEnumerateW(
static void capture_CheckNotify(IDirectSoundCaptureBufferImpl *This, DWORD from, DWORD len)
{
- unsigned i;
+ int i;
for (i = 0; i < This->nrofnotifies; ++i) {
LPDSBPOSITIONNOTIFY event = This->notifies + i;
DWORD offset = event->dwOffset;
diff --git a/dlls/dsound/mixer.c b/dlls/dsound/mixer.c
index 3c13e8f..efcb21b 100644
--- a/dlls/dsound/mixer.c
+++ b/dlls/dsound/mixer.c
@@ -324,7 +324,8 @@ static inline DWORD DSOUND_BufPtrDiff(DWORD buflen, DWORD ptr1, DWORD ptr2)
*/
void DSOUND_MixToTemporary(const IDirectSoundBufferImpl *dsb, DWORD writepos, DWORD len, BOOL inmixer)
{
- INT i, size;
+ DWORD i;
+ INT size;
BYTE *ibp, *obp, *obp_begin;
INT iAdvance = dsb->pwfx->nBlockAlign;
INT oAdvance = dsb->device->pwfx->nBlockAlign;
More information about the wine-cvs
mailing list