diff --git a/src/global.h b/src/global.h index e7cef35e..243c59f8 100644 --- a/src/global.h +++ b/src/global.h @@ -147,9 +147,9 @@ typedef int16_t coefficient; #ifdef _MSC_VER // 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 - #define MALLOC(type, num) malloc(sizeof(type) * num) + #define MALLOC(type, num) malloc(sizeof(type) * (num)) #endif #define FREE_POINTER(pointer) { free((void*)pointer); pointer = NULL; }