[Groonga-commit] groonga/grnxx at 65488d8 [master] Fix a bug that a query '!(X)' causes an error.

Back to archive index

susumu.yata null+****@clear*****
Wed Mar 5 14:08:39 JST 2014


susumu.yata	2014-03-05 14:08:39 +0900 (Wed, 05 Mar 2014)

  New Revision: 65488d84cc036a1ffe58683c8476b0fb182a6961
  https://github.com/groonga/grnxx/commit/65488d84cc036a1ffe58683c8476b0fb182a6961

  Message:
    Fix a bug that a query '!(X)' causes an error.
    
    Redmine: fixes #2382.

  Modified files:
    lib/grnxx/calc_impl.cpp

  Modified: lib/grnxx/calc_impl.cpp (+3 -2)
===================================================================
--- lib/grnxx/calc_impl.cpp    2014-03-05 14:00:18 +0900 (133d81a)
+++ lib/grnxx/calc_impl.cpp    2014-03-05 14:08:39 +0900 (ce8508f)
@@ -1045,8 +1045,9 @@ bool CalcImpl::push_token(const CalcToken &token,
             ((*stack)[stack->size() - 2].bracket_type() != LEFT_BRACKET)) {
           return false;
         }
-        (*stack)[stack->size() - 2] = stack->back();
-        stack->pop_back();
+        CalcToken content_token = stack->back();
+        stack->resize(stack->size() - 2);
+        push_token(content_token, stack);
         break;
       }
       break;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index