[tracker/tracker-0.8] libtracker-fts: Fix NEAR/XX operator with more than 2 digits
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.8] libtracker-fts: Fix NEAR/XX operator with more than 2 digits
- Date: Fri, 16 Jul 2010 10:15:13 +0000 (UTC)
commit 8aee301ab155ea4542de5bf8c6ca7e4a7dc9e22e
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 baa2027..1daef38 100644
--- a/src/libtracker-fts/tracker-fts.c
+++ b/src/libtracker-fts/tracker-fts.c
@@ -4413,7 +4413,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]