[Groonga-commit] groonga/groonga at eec574d [master] Fix a typo, from dividend to divisor.

Back to archive index

susumu.yata null+****@clear*****
Fri Feb 7 11:24:21 JST 2014


susumu.yata	2014-02-07 11:24:21 +0900 (Fri, 07 Feb 2014)

  New Revision: eec574dda2add5cd794553deb8ed99489d616175
  https://github.com/groonga/groonga/commit/eec574dda2add5cd794553deb8ed99489d616175

  Message:
    Fix a typo, from dividend to divisor.

  Modified files:
    lib/expr.c
    test/unit/core/test-expr-script.c

  Modified: lib/expr.c (+1 -1)
===================================================================
--- lib/expr.c    2014-02-07 11:53:17 +0900 (a9afff2)
+++ lib/expr.c    2014-02-07 11:24:21 +0900 (831d5ec)
@@ -1928,7 +1928,7 @@ grn_proc_call(grn_ctx *ctx, grn_obj *proc, int nargs, grn_obj *caller)
 #define ARITHMETIC_OPERATION_NO_CHECK(y) do {} while (0)
 #define ARITHMETIC_OPERATION_ZERO_DIVISION_CHECK(y) do {        \
   if ((long long int)y == 0) {                                  \
-    ERR(GRN_INVALID_ARGUMENT, "dividend should not be 0");      \
+    ERR(GRN_INVALID_ARGUMENT, "divisor should not be 0");       \
     goto exit;                                                  \
   }                                                             \
 } while (0)

  Modified: test/unit/core/test-expr-script.c (+2 -2)
===================================================================
--- test/unit/core/test-expr-script.c    2014-02-07 11:53:17 +0900 (47f3a0e)
+++ test/unit/core/test-expr-script.c    2014-02-07 11:24:21 +0900 (2230399)
@@ -1240,7 +1240,7 @@ data_arithmetic_operator_error_slash(void)
             "body == \"fuga\" / \"hoge\"");
   ADD_DATUM("integer / 0",
             GRN_INVALID_ARGUMENT,
-            "dividend should not be 0",
+            "divisor should not be 0",
             "size == 10 / 0");
 }
 
@@ -1253,7 +1253,7 @@ data_arithmetic_operator_error_mod(void)
             "body == \"fuga\" % \"hoge\"");
   ADD_DATUM("integer % 0",
             GRN_INVALID_ARGUMENT,
-            "dividend should not be 0",
+            "divisor should not be 0",
             "size == 10 % 0");
 }
 
-------------- next part --------------
HTML����������������������������...
Download 



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