PATCH: tests/vartype gcc fix

Marcus Meissner marcus at jet.franken.de
Sun Jul 11 10:35:28 CDT 2004


Hi,

Illegal lvalue casts in tests/vartype.c spotted by new compiler. Also
the format strings were wrong for long longs.

Ciao, Marcus

Changelog:
	Replaced some of the casts in the I8 tests.

Index: dlls//oleaut32/tests/vartype.c
===================================================================
RCS file: /home/wine/wine/dlls/oleaut32/tests/vartype.c,v
retrieving revision 1.11
diff -u -r1.11 vartype.c
--- dlls//oleaut32/tests/vartype.c	5 May 2004 19:00:21 -0000	1.11
+++ dlls//oleaut32/tests/vartype.c	11 Jul 2004 15:33:33 -0000
@@ -2310,7 +2310,7 @@
   if (!HAVE_OLEAUT32_I8)
     return;
 
-  COPYTEST(1, VT_I8, ((int)V_I8(&vSrc)), ((int)V_I8(&vDst)), V_I8REF(&vSrc), V_I8REF(&vDst), "%d");
+  COPYTEST((LONGLONG)1, VT_I8, V_I8(&vSrc), V_I8(&vDst), V_I8REF(&vSrc), V_I8REF(&vDst), "%lld");
 }
 
 static void test_VarI8ChangeTypeEx(void)
@@ -2544,8 +2544,8 @@
   if (!HAVE_OLEAUT32_I8)
     return;
 
-  COPYTEST(1, VT_UI8, ((unsigned)V_UI8(&vSrc)), ((unsigned)V_I8(&vDst)),
-           V_UI8REF(&vSrc), V_UI8REF(&vDst), "%u");
+  COPYTEST((LONGLONG)1, VT_UI8, (V_UI8(&vSrc)), (V_I8(&vDst)),
+           V_UI8REF(&vSrc), V_UI8REF(&vDst), "%llu");
 }
 
 static void test_VarUI8ChangeTypeEx(void)
-- 



More information about the wine-patches mailing list