Browse Source

Protect ARRAY_SIZE macro from multiple division usage

pull/321/merge
falkTX 3 years ago
parent
commit
148806b332
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      distrho/src/DistrhoDefines.h

+ 1
- 1
distrho/src/DistrhoDefines.h View File

@@ -211,7 +211,7 @@ private: \
#endif

/* Useful macros */
#define ARRAY_SIZE(ARRAY) sizeof(ARRAY)/sizeof(ARRAY[0])
#define ARRAY_SIZE(ARRAY) (sizeof(ARRAY)/sizeof(ARRAY[0]))

/* Useful typedefs */
typedef unsigned char uchar;


Loading…
Cancel
Save