[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [messagelib] webengineviewer/src/checkphishingurl: Fix return value
From: Montel Laurent <montel () kde ! org>
Date: 2016-12-07 21:06:25
Message-ID: E1cEjQ1-0007bB-Fu () code ! kde ! org
[Download RAW message or body]
Git commit fc951914a6fec5ca1d7f2c6f45aa14073837a8a7 by Montel Laurent.
Committed on 07/12/2016 at 20:59.
Pushed by mlaurent into branch 'master'.
Fix return value
M +1 -2 webengineviewer/src/checkphishingurl/riceencodingdecoder.cpp
https://commits.kde.org/messagelib/fc951914a6fec5ca1d7f2c6f45aa14073837a8a7
diff --git a/webengineviewer/src/checkphishingurl/riceencodingdecoder.cpp \
b/webengineviewer/src/checkphishingurl/riceencodingdecoder.cpp index \
07737ab0..9e441821 100644
--- a/webengineviewer/src/checkphishingurl/riceencodingdecoder.cpp
+++ b/webengineviewer/src/checkphishingurl/riceencodingdecoder.cpp
@@ -140,7 +140,6 @@ bool RiceDecoder::nextBits(unsigned int numRequestedBits, \
uint32_t* x) if (numRequestedBits > kMaxBitIndex) {
return false;
}
-
if (mCurrentWordBitIndex == kMaxBitIndex) {
bool result = nextWord(&mCurrentWord);
if (!result) {
@@ -167,7 +166,7 @@ bool RiceDecoder::nextBits(unsigned int numRequestedBits, \
uint32_t* x) }
*x = (upper << num_bits_left_in_current_word) | lower;
}
- return false;
+ return true;
}
bool RiceDecoder::nextWord(uint32_t* word)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic