Add missing ULL suffixes to SR_MHZ() et al.

This fixes bug #72.
This commit is contained in:
Uwe Hermann 2013-03-09 12:20:17 +01:00
parent 79bb0e97d5
commit 0b4b41eed8
1 changed files with 4 additions and 4 deletions

View File

@ -77,11 +77,11 @@ enum {
/* Handy little macros */ /* Handy little macros */
#define SR_HZ(n) (n) #define SR_HZ(n) (n)
#define SR_KHZ(n) ((n) * 1000) #define SR_KHZ(n) ((n) * (uint64_t)(1000ULL))
#define SR_MHZ(n) ((n) * 1000000) #define SR_MHZ(n) ((n) * (uint64_t)(1000000ULL))
#define SR_GHZ(n) ((n) * 1000000000) #define SR_GHZ(n) ((n) * (uint64_t)(1000000000ULL))
#define SR_HZ_TO_NS(n) (1000000000 / (n)) #define SR_HZ_TO_NS(n) ((uint64_t)(1000000000ULL) / (n))
/** libsigrok loglevels. */ /** libsigrok loglevels. */
enum { enum {