]> sigrok.org Git - libsigrok.git/blobdiff - strutil.c
Add missing "ULL" suffixes.
[libsigrok.git] / strutil.c
index 2c4d5c814e9503012a5a42d7ecddb66e4772c72a..5ac9b71912a7ef1fa4a03f6fef784f5e6727313d 100644 (file)
--- a/strutil.c
+++ b/strutil.c
@@ -404,11 +404,11 @@ SR_API int sr_parse_period(const char *periodstr, struct sr_rational *r)
                while (*s == ' ')
                        s++;
                if (!strcmp(s, "fs"))
-                       r->q = 1000000000000000L;
+                       r->q = 1000000000000000ULL;
                else if (!strcmp(s, "ps"))
-                       r->q = 1000000000000L;
+                       r->q = 1000000000000ULL;
                else if (!strcmp(s, "ns"))
-                       r->q = 1000000000L;
+                       r->q = 1000000000ULL;
                else if (!strcmp(s, "us"))
                        r->q = 1000000;
                else if (!strcmp(s, "ms"))