summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2018-06-05 13:13:12 +0200
committerLiang Qi <liang.qi@qt.io>2018-06-06 11:36:33 +0000
commit62abbe34b84a1c224d27f3eb2f735749f5f24b4f (patch)
treeec1eee6ce05a917084d6feb656d54c6849ab9215 /src/network
parent8c33b798237b95d37fe4d60ae36f0d8067504429 (diff)
Fix build for Android with android-clang in r17
Task-number: QTBUG-67464 Change-Id: Ib971a5da82b31bce9ac1c9ac623ad7d5302cfaec Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/network')
-rw-r--r--src/network/access/http2/hpacktable.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/network/access/http2/hpacktable.cpp b/src/network/access/http2/hpacktable.cpp
index db9574e2bc..a90ee72d52 100644
--- a/src/network/access/http2/hpacktable.cpp
+++ b/src/network/access/http2/hpacktable.cpp
@@ -64,8 +64,6 @@ HeaderSize entry_size(const QByteArray &name, const QByteArray &value)
const unsigned sum = unsigned(name.size()) + value.size();
if (std::numeric_limits<unsigned>::max() - 32 < sum)
return HeaderSize();
- if (sum + 32 > std::numeric_limits<quint32>::max())
- return HeaderSize();
return HeaderSize(true, quint32(sum + 32));
}