Kouhei Sutou
null+****@clear*****
Wed Mar 6 16:02:01 JST 2013
Kouhei Sutou 2013-03-06 16:02:01 +0900 (Wed, 06 Mar 2013) New Revision: bf2b49b9a04d91b6b307c16763d8417f57b041f0 https://github.com/groonga/groonga/commit/bf2b49b9a04d91b6b307c16763d8417f57b041f0 Log: Use int for -X for UInt16 Because -((uint16_t)X) returns positive. Modified files: lib/expr.c Modified: lib/expr.c (+1 -1) =================================================================== --- lib/expr.c 2013-03-06 16:00:00 +0900 (8dc6ebf) +++ lib/expr.c 2013-03-06 16:02:01 +0900 (0866147) @@ -2243,7 +2243,7 @@ grn_proc_call(grn_ctx *ctx, grn_obj *proc, int nargs, grn_obj *caller) break; \ case GRN_DB_UINT16 : \ { \ - uint16_t x_; \ + int x_; \ x_ = GRN_UINT16_VALUE(x); \ left_expression_check(x_); \ GRN_INT32_SET(ctx, res, integer_operation(x_)); \ -------------- next part -------------- HTML����������������������������...Download