X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fstrutil.c;h=1b57302867832885663c5c605d0a027c5e172932;hb=d5db6ea7e17b5f8b8f13dd67fdb7e126931fdb05;hp=e58537b3951c266d563ff246be9bbebc3420bb89;hpb=79034d4f39f76415e463f02d6b60f5269481da9f;p=libsigrok.git diff --git a/src/strutil.c b/src/strutil.c index e58537b3..1b573028 100644 --- a/src/strutil.c +++ b/src/strutil.c @@ -803,11 +803,11 @@ SR_API int sr_parse_period(const char *periodstr, uint64_t *p, uint64_t *q) while (*s == ' ') s++; if (!strcmp(s, "fs")) - *q = 1000000000000000ULL; + *q = UINT64_C(1000000000000000); else if (!strcmp(s, "ps")) - *q = 1000000000000ULL; + *q = UINT64_C(1000000000000); else if (!strcmp(s, "ns")) - *q = 1000000000ULL; + *q = UINT64_C(1000000000); else if (!strcmp(s, "us")) *q = 1000000; else if (!strcmp(s, "ms"))