Alexandre Julliard : cmd/tests: Add casts to pointer differences in traces.

Alexandre Julliard julliard at winehq.org
Fri Apr 9 11:49:56 CDT 2010


Module: wine
Branch: master
Commit: 5b1f6614ed244c9dfda2f8ae1175643a27500daa
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5b1f6614ed244c9dfda2f8ae1175643a27500daa

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Apr  9 16:14:28 2010 +0200

cmd/tests: Add casts to pointer differences in traces.

---

 programs/cmd/tests/batch.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/programs/cmd/tests/batch.c b/programs/cmd/tests/batch.c
index e31fdc0..9e93a01 100644
--- a/programs/cmd/tests/batch.c
+++ b/programs/cmd/tests/batch.c
@@ -172,10 +172,10 @@ static void test_output(const char *out_data, DWORD out_size, const char *exp_da
         err = compare_line(out_ptr, out_nl, exp_ptr, exp_nl);
         if(err == out_nl)
             ok(0, "unexpected end of line %d (got '%.*s', wanted '%.*s')\n",
-               line, out_nl-out_ptr, out_ptr, exp_nl-exp_ptr, exp_ptr);
+               line, (int)(out_nl-out_ptr), out_ptr, (int)(exp_nl-exp_ptr), exp_ptr);
         else if(err)
             ok(0, "unexpected char 0x%x position %d in line %d (got '%.*s', wanted '%.*s')\n",
-               *err, err-out_ptr, line, out_nl-out_ptr, out_ptr, exp_nl-exp_ptr, exp_ptr);
+               *err, (int)(err-out_ptr), line, (int)(out_nl-out_ptr), out_ptr, (int)(exp_nl-exp_ptr), exp_ptr);
 
         exp_ptr = exp_nl+1;
         out_ptr = out_nl+1;




More information about the wine-cvs mailing list