( ) for preprocessor directives...

This commit is contained in:
Laurent Fasnacht 2014-04-22 15:25:59 +02:00
parent fba4f5432a
commit 12e3900fd1

View file

@ -147,9 +147,9 @@ typedef int16_t coefficient;
#ifdef _MSC_VER #ifdef _MSC_VER
// Buggy VS2010 throws intellisense warnings if void* is not casted. // Buggy VS2010 throws intellisense warnings if void* is not casted.
#define MALLOC(type, num) (type *)malloc(sizeof(type) * num) #define MALLOC(type, num) (type *)malloc(sizeof(type) * (num))
#else #else
#define MALLOC(type, num) malloc(sizeof(type) * num) #define MALLOC(type, num) malloc(sizeof(type) * (num))
#endif #endif
#define FREE_POINTER(pointer) { free((void*)pointer); pointer = NULL; } #define FREE_POINTER(pointer) { free((void*)pointer); pointer = NULL; }