Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- src/sphinxexpr.cpp | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
- diff --git a/src/sphinxexpr.cpp b/src/sphinxexpr.cpp
- index 5acd943..a07216d 100644
- --- a/src/sphinxexpr.cpp
- +++ b/src/sphinxexpr.cpp
- @@ -1799,7 +1799,7 @@ public:
- /// evaluate arg, return interval id
- virtual int IntEval ( const CSphMatch & tMatch ) const
- {
- - T val = ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
- + T val = this->ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
- ARRAY_FOREACH ( i, this->m_dValues ) // FIXME! OPTIMIZE! perform binary search here
- if ( val<this->m_dValues[i] )
- return i;
- @@ -1830,7 +1830,7 @@ public:
- /// evaluate arg, return interval id
- virtual int IntEval ( const CSphMatch & tMatch ) const
- {
- - T val = ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
- + T val = this->ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
- ARRAY_FOREACH ( i, m_dTurnPoints )
- if ( val < Expr_ArgVsSet_c<T>::ExprEval ( m_dTurnPoints[i], tMatch ) )
- return i;
- @@ -1876,7 +1876,7 @@ public:
- /// evaluate arg, check if the value is within set
- virtual int IntEval ( const CSphMatch & tMatch ) const
- {
- - T val = ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
- + T val = this->ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
- return this->m_dValues.BinarySearch ( val )!=NULL;
- }
- --
- 1.7.10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement