Fix insufficient braces in KHZ() et al.
This commit is contained in:
parent
fdd20b5239
commit
d86dc674a2
6
sigrok.h
6
sigrok.h
|
@ -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]))
|
||||
|
|
Loading…
Reference in New Issue