From b6c321a0a88d6b4a78e8e75954079e89bcfe8491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Wed, 19 Apr 2017 22:55:07 +0200 Subject: Fix overflow for std::size_t having 32 bits. --- plugingui/diskstreamingframecontent.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}; -- cgit v1.2.3