diff options
author | IronicallySerious <wtwarit@gmail.com> | 2019-01-31 01:08:57 +0530 |
---|---|---|
committer | IronicallySerious <wtwarit@gmail.com> | 2019-02-18 22:08:42 +0530 |
commit | 4121df235ee49471f30089a2d6b6e081536852ba (patch) | |
tree | f4da4d68866cc1a0143616d6249819b1cfa60f2d /core/io | |
parent | c21ca98e4c6e6228adefcc696b3ff6a1104c678e (diff) |
Fix parameterised macros in core. Addresses #25488
This adds the saves the programmer of doing something like SWAP(x++, y--)
and getting the wrong result unless the parameters are evaluated
before use.
Diffstat (limited to 'core/io')
-rw-r--r-- | core/io/logger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/logger.cpp b/core/io/logger.cpp index eeb82bfce4..9175f6a262 100644 --- a/core/io/logger.cpp +++ b/core/io/logger.cpp @@ -39,7 +39,7 @@ // va_copy, otherwise you have to use the internal version (__va_copy). #if !defined(va_copy) #if defined(__GNUC__) -#define va_copy(d, s) __va_copy(d, s) +#define va_copy(d, s) __va_copy((d), (s)) #else #define va_copy(d, s) ((d) = (s)) #endif |