Alexandre Julliard : msvcp60/tests: Fix printf format warnings on 64-bit.

Alexandre Julliard julliard at winehq.org
Thu Jan 27 15:36:17 CST 2022


Module: wine
Branch: master
Commit: 88ba91de857322676fd59e79803ebf57c00c8c2b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=88ba91de857322676fd59e79803ebf57c00c8c2b

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Jan 27 17:55:42 2022 +0100

msvcp60/tests: Fix printf format warnings on 64-bit.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msvcp60/tests/ios.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/msvcp60/tests/ios.c b/dlls/msvcp60/tests/ios.c
index b4753f3ee51..e6b79edcd11 100644
--- a/dlls/msvcp60/tests/ios.c
+++ b/dlls/msvcp60/tests/ios.c
@@ -1424,7 +1424,7 @@ static void test_istream_tellg(void)
             call_func2_ptr_fpos(p_basic_istream_char_seekg_fpos, &ss.base.base1, spos);
         rpos = call_func2(p_basic_istream_char_tellg, &ss.base.base1, &tpos);
 
-        ok(tests[i].telloff_ss == tpos.off, "wrong offset, expected = %ld found = %ld\n", tests[i].telloff_ss, tpos.off);
+        ok(tests[i].telloff_ss == tpos.off, "wrong offset, expected = %Id found = %Id\n", tests[i].telloff_ss, tpos.off);
         ok(rpos == &tpos, "wrong return fpos, expected = %p found = %p\n", rpos, &tpos);
         ok(tpos.pos == 0, "wrong position, expected = 0 found = %s\n", wine_dbgstr_longlong(tpos.pos));
         ok(tpos.state == 0, "wrong state, expected = 0 found = %d\n", tpos.state);
@@ -1453,7 +1453,7 @@ static void test_istream_tellg(void)
             call_func2_ptr_fpos(p_basic_istream_wchar_seekg_fpos, &wss.base.base1, spos);
         rpos = call_func2(p_basic_istream_wchar_tellg, &wss.base.base1, &tpos);
 
-        ok(tests[i].telloff_ss == tpos.off, "wrong offset, expected = %ld found = %ld\n", tests[i].telloff_ss, tpos.off);
+        ok(tests[i].telloff_ss == tpos.off, "wrong offset, expected = %Id found = %Id\n", tests[i].telloff_ss, tpos.off);
         ok(rpos == &tpos, "wrong return fpos, expected = %p found = %p\n", rpos, &tpos);
         ok(tpos.pos == 0, "wrong position, expected = 0 found = %s\n", wine_dbgstr_longlong(tpos.pos));
         ok(tpos.state == 0, "wrong state, expected = 0 found = %d\n", tpos.state);
@@ -1488,7 +1488,7 @@ static void test_istream_tellg(void)
         ok(tests[i].tellpos == tpos.pos, "wrong filepos, expected = %s found = %s\n",
             wine_dbgstr_longlong(tests[i].tellpos), wine_dbgstr_longlong(tpos.pos));
         ok(rpos == &tpos, "wrong return fpos, expected = %p found = %p\n", rpos, &tpos);
-        ok(tpos.off == tests[i].telloff_fs, "wrong offset, expected %ld found %ld\n", tests[i].telloff_fs, tpos.off);
+        ok(tpos.off == tests[i].telloff_fs, "wrong offset, expected %Id found %Id\n", tests[i].telloff_fs, tpos.off);
         ok(tpos.state == 0, "wrong state, expected = 0 found = %d\n", tpos.state);
 
         call_func1(p_basic_fstream_char_vbase_dtor, &fs);
@@ -1511,7 +1511,7 @@ static void test_istream_tellg(void)
         ok(tests[i].tellpos == tpos.pos, "wrong filepos, expected = %s found = %s\n",
             wine_dbgstr_longlong(tests[i].tellpos), wine_dbgstr_longlong(tpos.pos));
         ok(rpos == &tpos, "wrong return fpos, expected = %p found = %p\n", rpos, &tpos);
-        ok(tpos.off == tests[i].telloff_fs, "wrong offset, expected %ld found %ld\n", tests[i].telloff_fs, tpos.off);
+        ok(tpos.off == tests[i].telloff_fs, "wrong offset, expected %Id found %Id\n", tests[i].telloff_fs, tpos.off);
         ok(tpos.state == 0, "wrong state, expected = 0 found = %d\n", tpos.state);
 
         call_func1(p_basic_fstream_wchar_vbase_dtor, &wfs);




More information about the wine-cvs mailing list