]> sigrok.org Git - libsigrok.git/commitdiff
lecroy-xstream: Fix potential issue by adding UINT64_C.
authorUwe Hermann <redacted>
Tue, 20 Feb 2018 19:00:10 +0000 (20:00 +0100)
committerUwe Hermann <redacted>
Tue, 20 Feb 2018 19:03:21 +0000 (20:03 +0100)
src/hardware/lecroy-xstream/protocol.c

index 0c16129f2b4102808c7edc103040c6243459a2b1..03cf88ce7e73d42375c79b5644afdb6225e3a2fc 100644 (file)
@@ -92,11 +92,11 @@ static const char *trigger_sources[] = {
 
 static const uint64_t timebases[][2] = {
        /* picoseconds */
-       { 20, 1000000000000 },
-       { 50, 1000000000000 },
-       { 100, 1000000000000 },
-       { 200, 1000000000000 },
-       { 500, 1000000000000 },
+       { 20, UINT64_C(1000000000000) },
+       { 50, UINT64_C(1000000000000) },
+       { 100, UINT64_C(1000000000000) },
+       { 200, UINT64_C(1000000000000) },
+       { 500, UINT64_C(1000000000000) },
        /* nanoseconds */
        { 1, 1000000000 },
        { 2, 1000000000 },