[tracker] libtracker-fts: Fix NEAR/XX operator with more than 2 digits
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-fts: Fix NEAR/XX operator with more than 2 digits
- Date: Wed, 14 Jul 2010 12:59:47 +0000 (UTC)
commit 48f361f94add0c67bf325ea9983307ef3bbb5fce
Author: Aleksander Morgado <aleksander lanedo com>
Date: Wed Jul 14 14:59:13 2010 +0200
libtracker-fts: Fix NEAR/XX operator with more than 2 digits
src/libtracker-fts/tracker-fts.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-fts/tracker-fts.c b/src/libtracker-fts/tracker-fts.c
index f4f3b6a..1f8a0c5 100644
--- a/src/libtracker-fts/tracker-fts.c
+++ b/src/libtracker-fts/tracker-fts.c
@@ -4467,7 +4467,7 @@ static int tokenizeSegment(
){
pTerm->nNear = (pSegment[iBegin+5] - '0');
nToken += 2;
- if( pSegment[iBegin+6]>='0' && pSegment[iBegin+6]<=9 ){
+ if( pSegment[iBegin+6]>='0' && pSegment[iBegin+6]<='9' ){
pTerm->nNear = pTerm->nNear * 10 + (pSegment[iBegin+6] - '0');
iEnd++;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]