diff options
author | André Nusser <andre.nusser@googlemail.com> | 2017-04-19 22:55:07 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2017-04-19 22:55:07 +0200 |
commit | b6c321a0a88d6b4a78e8e75954079e89bcfe8491 (patch) | |
tree | aeb80f5af82b2a308f3f213cd2d08063086a69e6 | |
parent | 11e2bda54641c1ef4cad38c11d742524966c7e86 (diff) |
Fix overflow for std::size_t having 32 bits.
-rw-r--r-- | plugingui/diskstreamingframecontent.h | 2 |
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}; |