Fix insufficient braces in KHZ() et al.

This commit is contained in:
Uwe Hermann 2010-04-15 19:49:14 +02:00
parent fdd20b5239
commit d86dc674a2
1 changed files with 3 additions and 3 deletions

View File

@ -50,9 +50,9 @@
#define SIGROK_ERR_SAMPLERATE -3 /* Incorrect samplerate */
/* Handy little macros */
#define KHZ(n) (n * 1000)
#define MHZ(n) (n * 1000000)
#define GHZ(n) (n * 1000000000)
#define KHZ(n) ((n) * 1000)
#define MHZ(n) ((n) * 1000000)
#define GHZ(n) ((n) * 1000000000)
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))