]> sigrok.org Git - pulseview.git/commit
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)
commite40b2f294066331dc04598f4b0dccac2bab7c295
tree5f8bcaf4942106050f6e4bece648d85491fc84e7
parent9632990d5428efb120d1085d4f441ad371d447fc
Fix compilation on 32-bit systems

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.)
pv/dialogs/storeprogress.cpp
pv/storesession.cpp
pv/storesession.h