Repository: lucy
Updated Branches:
  refs/heads/master 42c878f36 -> a5c6f723e


Switch from VA_Shift to VA_Excise


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/5f0f936f
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/5f0f936f
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/5f0f936f

Branch: refs/heads/master
Commit: 5f0f936f34c5f8562d26ec4b9ace41c40ea58c40
Parents: 42c878f
Author: Nick Wellnhofer <[email protected]>
Authored: Sun Apr 26 20:16:52 2015 +0200
Committer: Nick Wellnhofer <[email protected]>
Committed: Sun Apr 26 20:16:52 2015 +0200

----------------------------------------------------------------------
 core/Lucy/Search/QueryParser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/5f0f936f/core/Lucy/Search/QueryParser.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Search/QueryParser.c b/core/Lucy/Search/QueryParser.c
index b0f25a9..273e48a 100644
--- a/core/Lucy/Search/QueryParser.c
+++ b/core/Lucy/Search/QueryParser.c
@@ -295,7 +295,7 @@ S_parse_subquery(QueryParser *self, VArray *elems, String 
*default_field,
         ParserElem *first = (ParserElem*)VA_Fetch(elems, 0);
         if (ParserElem_Get_Type(first) == TOKEN_OPEN_PAREN) {
             enclosed = true;
-            DECREF(VA_Shift(elems));
+            VA_Excise(elems, 0, 1);
             DECREF(VA_Pop(elems));
         }
     }

Reply via email to