mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-30 20:54:07 +00:00
( ) for preprocessor directives...
This commit is contained in:
parent
fba4f5432a
commit
12e3900fd1
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue