Alexandre Julliard : Avoid some size_t printf format warnings.
Alexandre Julliard
julliard at winehq.org
Thu Aug 21 10:03:06 CDT 2008
Module: wine
Branch: master
Commit: 5d900bb0f625f7870170c1a5ae570872664aba5c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5d900bb0f625f7870170c1a5ae570872664aba5c
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Aug 21 16:05:15 2008 +0200
Avoid some size_t printf format warnings.
---
dlls/dplayx/tests/dplayx.c | 2 +-
dlls/quartz/avisplit.c | 2 +-
dlls/winhttp/tests/winhttp.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/dplayx/tests/dplayx.c b/dlls/dplayx/tests/dplayx.c
index 4fdc494..19c42b4 100644
--- a/dlls/dplayx/tests/dplayx.c
+++ b/dlls/dplayx/tests/dplayx.c
@@ -27,7 +27,7 @@
#define check(expected, result) \
ok( (expected) == (result), \
"expected=%d got=%d\n", \
- expected, result );
+ (int)(expected), (int)(result) );
#define checkLP(expected, result) \
ok( (expected) == (result), \
"expected=%p got=%p\n", \
diff --git a/dlls/quartz/avisplit.c b/dlls/quartz/avisplit.c
index 3f1625c..e93d1d1 100644
--- a/dlls/quartz/avisplit.c
+++ b/dlls/quartz/avisplit.c
@@ -549,7 +549,7 @@ static HRESULT AVISplitter_ProcessIndex(AVISplitterImpl *This, AVISTDINDEX **ind
{
FIXME("Invalid index chunk encountered: %u/%u, %u/%u, %u/%u, %u/%u\n",
pIndex->bIndexType, AVI_INDEX_OF_CHUNKS, pIndex->wLongsPerEntry, 2,
- rest, (pIndex->nEntriesInUse * sizeof(DWORD) * pIndex->wLongsPerEntry),
+ rest, (DWORD)(pIndex->nEntriesInUse * sizeof(DWORD) * pIndex->wLongsPerEntry),
pIndex->bIndexSubType, AVI_INDEX_SUB_DEFAULT);
*index = NULL;
return E_INVALIDARG;
diff --git a/dlls/winhttp/tests/winhttp.c b/dlls/winhttp/tests/winhttp.c
index 527794d..d77dcc0 100644
--- a/dlls/winhttp/tests/winhttp.c
+++ b/dlls/winhttp/tests/winhttp.c
@@ -129,7 +129,7 @@ static void test_SendRequest (void)
todo_wine ok(ret == TRUE, "WinHttpReadData failed: %u.\n", GetLastError());
todo_wine ok(bytes_rw == strlen(test_post), "Read %u bytes instead of %d.\n",
- bytes_rw, strlen(test_post));
+ bytes_rw, lstrlen(test_post));
todo_wine ok(strncmp(buffer, test_post, bytes_rw) == 0,
"Data read did not match, got '%s'.\n", buffer);
More information about the wine-cvs
mailing list