Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix misbalanced parentheses in checks for va_copy. [Arnaud Giersch]
[simgrid.git] / src / win32 / compiler / visualc.h
index 4b1a8a6..37d93ec 100644 (file)
@@ -334,12 +334,12 @@ the double. For now, GRAS requires the structures to be compacted. */
 
        #ifndef __VA_COPY_USE_CPP(d, s)
        /* Predefined possible va_copy() implementation (id: CPP) */
-               #define __VA_COPY_USE_CPP(d, s) memcpy((void *)(d), (void *)(s)), sizeof(*(s))
+               #define __VA_COPY_USE_CPP(d, s) memcpy((void *)(d), (void *)(s), sizeof(*(s)))
        #endif
 
        #ifndef __VA_COPY_USE_CPS(d, s)
        /* Predefined possible va_copy() implementation (id: CPS) */
-               #define __VA_COPY_USE_CPS(d, s) memcpy((void *)&(d), (void *)&(s)), sizeof((s))
+               #define __VA_COPY_USE_CPS(d, s) memcpy((void *)&(d), (void *)&(s), sizeof(s))
        #endif
 
        #ifndef __VA_COPY_USE_GCB(d, s)