]> sigrok.org Git - pulseview.git/commitdiff
samplingbar.cpp: Add missing "ULL".
authorUwe Hermann <redacted>
Sat, 19 Jan 2013 19:50:30 +0000 (20:50 +0100)
committerUwe Hermann <redacted>
Sat, 19 Jan 2013 19:50:30 +0000 (20:50 +0100)
10000000000 is too large for an int/long on 32bit systems, properly list it
as 10000000000ULL, otherwise the compile will fail.

samplingbar.cpp:48: error: integer constant is too large for 'long' type.

pv/samplingbar.cpp

index 60d7b4c8aec6cdcb2841a383ee5e8922b4fcc7be..8bdadbb149709697e738f26190656d4b3084380f 100644 (file)
@@ -45,7 +45,7 @@ const uint64_t SamplingBar::RecordLengths[11] = {
        250000000,
        500000000,
        1000000000,
-       10000000000
+       10000000000ULL,
 };
 
 SamplingBar::SamplingBar(QWidget *parent) :