summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2016-11-03 21:36:49 (GMT)
committerAlbert Astals Cid <aacid@kde.org>2016-11-03 21:36:49 (GMT)
commitefa85d7ff306b818c924816bca05674a2d145eff (patch)
treea1058a01c8828a9fccff780aad7bb05e092cf01f
parentdaa7341c2ba486a212232ad5a81996f158d9be93 (diff)
-rw-r--r--lib/mobipocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mobipocket.cpp b/lib/mobipocket.cpp
index dd7dfc2..8e26d26 100644
--- a/lib/mobipocket.cpp
+++ b/lib/mobipocket.cpp
@@ -229,7 +229,7 @@ void DocumentPrivate::parseEXTH(const QByteArray& data)
quint32 records=readBELong(data,exthoffs+8);
quint32 offset=exthoffs+12;
for (unsigned int i=0;i<records;i++) {
- if (offset+4>data.size()) break;
+ if (offset+4 > quint32(data.size())) break;
quint32 type=readBELong(data,offset);
offset+=4;
switch (type) {