Kouhei Sutou
null+****@clear*****
Wed Mar 6 16:03:36 JST 2013
Kouhei Sutou 2013-03-06 16:03:36 +0900 (Wed, 06 Mar 2013) New Revision: e64b82f6ab249daf2f0352709839b52dcd967c34 https://github.com/groonga/groonga/commit/e64b82f6ab249daf2f0352709839b52dcd967c34 Log: Use int16_t for -X for UInt8 Because -((uint8_t)X) returns positive. Modified files: lib/expr.c Modified: lib/expr.c (+1 -1) =================================================================== --- lib/expr.c 2013-03-06 16:03:08 +0900 (0866147) +++ lib/expr.c 2013-03-06 16:03:36 +0900 (58a43cf) @@ -2226,7 +2226,7 @@ grn_proc_call(grn_ctx *ctx, grn_obj *proc, int nargs, grn_obj *caller) break; \ case GRN_DB_UINT8 : \ { \ - uint8_t x_; \ + int16_t x_; \ x_ = GRN_UINT8_VALUE(x); \ left_expression_check(x_); \ GRN_INT16_SET(ctx, res, integer_operation(x_)); \ -------------- next part -------------- HTML����������������������������...下載