summaryrefslogtreecommitdiff
path: root/plugingui/diskstreamingframecontent.h
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-04-19 22:55:07 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2017-04-19 22:55:07 +0200
commitb6c321a0a88d6b4a78e8e75954079e89bcfe8491 (patch)
treeaeb80f5af82b2a308f3f213cd2d08063086a69e6 /plugingui/diskstreamingframecontent.h
parent11e2bda54641c1ef4cad38c11d742524966c7e86 (diff)
Fix overflow for std::size_t having 32 bits.
Diffstat (limited to 'plugingui/diskstreamingframecontent.h')
-rw-r--r--plugingui/diskstreamingframecontent.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugingui/diskstreamingframecontent.h b/plugingui/diskstreamingframecontent.h
index 2b34bc5..7b17408 100644
--- a/plugingui/diskstreamingframecontent.h
+++ b/plugingui/diskstreamingframecontent.h
@@ -53,7 +53,7 @@ private:
void reloadClicked();
// For now the maximum disk streaming limit is 4GB
- static constexpr std::size_t max_limit = 1024.0 * 1024.0 * 1024.0 * 4.0;
+ static constexpr std::size_t max_limit = 1024.0 * 1024.0 * 1024.0 * 4.0 - 1;
Label label_text{this};
Label label_size{this};