Skip to content

Commit

Permalink
Fix a typo, from dividend to divisor.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yata committed Feb 7, 2014
1 parent 10ad9e7 commit eec574d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/expr.c
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions test/unit/core/test-expr-script.c
Expand Up @@ -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");
}

Expand All @@ -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");
}

Expand Down

0 comments on commit eec574d

Please sign in to comment.