Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 10th, 2012  |  syntax: Diff  |  size: 1.45 KB  |  hits: 84  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ---
  2. src/sphinxexpr.cpp |    6 +++---
  3.  1 file changed, 3 insertions(+), 3 deletions(-)
  4.  
  5. diff --git a/src/sphinxexpr.cpp b/src/sphinxexpr.cpp
  6. index 5acd943..a07216d 100644
  7. --- a/src/sphinxexpr.cpp
  8. +++ b/src/sphinxexpr.cpp
  9. @@ -1799,7 +1799,7 @@ public:
  10.         /// evaluate arg, return interval id
  11.         virtual int IntEval ( const CSphMatch & tMatch ) const
  12.         {
  13. -               T val = ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
  14. +               T val = this->ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
  15.                 ARRAY_FOREACH ( i, this->m_dValues ) // FIXME! OPTIMIZE! perform binary search here
  16.                         if ( val<this->m_dValues[i] )
  17.                                 return i;
  18. @@ -1830,7 +1830,7 @@ public:
  19.         /// evaluate arg, return interval id
  20.         virtual int IntEval ( const CSphMatch & tMatch ) const
  21.         {
  22. -               T val = ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
  23. +               T val = this->ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
  24.                 ARRAY_FOREACH ( i, m_dTurnPoints )
  25.                         if ( val < Expr_ArgVsSet_c<T>::ExprEval ( m_dTurnPoints[i], tMatch ) )
  26.                                 return i;
  27. @@ -1876,7 +1876,7 @@ public:
  28.         /// evaluate arg, check if the value is within set
  29.         virtual int IntEval ( const CSphMatch & tMatch ) const
  30.         {
  31. -               T val = ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
  32. +               T val = this->ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
  33.                 return this->m_dValues.BinarySearch ( val )!=NULL;
  34.         }
  35.  
  36. --
  37. 1.7.10