]> sigrok.org Git - pulseview.git/commitdiff
Fix compilation on 32-bit systems
authorMarcus Comstedt <redacted>
Sun, 29 Jun 2014 12:09:03 +0000 (14:09 +0200)
committerMarcus Comstedt <redacted>
Sun, 29 Jun 2014 12:15:35 +0000 (14:15 +0200)
storesession.h was declaring fields as std::atomic<uint64_t>, a type
not avaiable on 32-bit systems.  However, the values stored in these
fields were only used as input to QProgressDialog, which takes int,
not uint64_t.  So the fields could just as well be std::atomic<int>.

Also, added code to scale the progress values down if they would not
fit in an int.  (This would have been needed even if the fields were
to remain as uint64_t.)


No differences found