[Groonga-commit] groonga/grnxx at be875b8 [master] Add a missing case.

Back to archive index

susumu.yata null+****@clear*****
Thu Aug 28 15:46:23 JST 2014


susumu.yata	2014-08-28 15:46:23 +0900 (Thu, 28 Aug 2014)

  New Revision: be875b86525e90b7b1627d550d869035fadb7d3a
  https://github.com/groonga/grnxx/commit/be875b86525e90b7b1627d550d869035fadb7d3a

  Message:
    Add a missing case.

  Modified files:
    lib/grnxx/expression.cpp

  Modified: lib/grnxx/expression.cpp (+3 -3)
===================================================================
--- lib/grnxx/expression.cpp    2014-08-28 15:38:14 +0900 (768efe1)
+++ lib/grnxx/expression.cpp    2014-08-28 15:46:23 +0900 (f0e5b28)
@@ -2610,7 +2610,8 @@ bool ExpressionBuilder::push_operator(Error *error,
     case MINUS_OPERATOR:
     case MULTIPLICATION_OPERATOR:
     case DIVISION_OPERATOR:
-    case MODULUS_OPERATOR: {
+    case MODULUS_OPERATOR:
+    case SUBSCRIPT_OPERATOR: {
       return push_binary_operator(error, operator_type);
     }
     default: {
@@ -2935,8 +2936,7 @@ unique_ptr<Node> ExpressionBuilder::create_binary_node(
       return ModulusNode<Int>::create(error, std::move(arg1), std::move(arg2));
     }
     case SUBSCRIPT_OPERATOR: {
-      return create_subscript_node(
-          error, std::move(arg1), std::move(arg2));
+      return create_subscript_node(error, std::move(arg1), std::move(arg2));
     }
     default: {
       // TODO: Not supported yet.
-------------- next part --------------
HTML����������������������������...
Télécharger 



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