susumu.yata
null+****@clear*****
Fri Oct 30 14:32:09 JST 2015
susumu.yata 2015-10-30 14:32:09 +0900 (Fri, 30 Oct 2015) New Revision: fa4f1a36caf516582ad688c175c88cd0e743885e https://github.com/groonga/groonga/commit/fa4f1a36caf516582ad688c175c88cd0e743885e Message: grn_expr: use unsigned_integer_operation for UINT8 and UINT16 To suppress warnings: comparison is always false due to limited range of data type Modified files: lib/expr.c Modified: lib/expr.c (+2 -2) =================================================================== --- lib/expr.c 2015-10-30 13:48:44 +0900 (5590870) +++ lib/expr.c 2015-10-30 14:32:09 +0900 (0e5c820) @@ -1782,7 +1782,7 @@ grn_proc_call(grn_ctx *ctx, grn_obj *proc, int nargs, grn_obj *caller) int y_; \ y_ = GRN_UINT8_VALUE(y); \ ARITHMETIC_OPERATION_ZERO_DIVISION_CHECK(y_); \ - set(ctx, res, signed_integer_operation(x_, y_)); \ + set(ctx, res, unsigned_integer_operation(x_, y_)); \ } \ break; \ case GRN_DB_INT16 : \ @@ -1798,7 +1798,7 @@ grn_proc_call(grn_ctx *ctx, grn_obj *proc, int nargs, grn_obj *caller) int y_; \ y_ = GRN_UINT16_VALUE(y); \ ARITHMETIC_OPERATION_ZERO_DIVISION_CHECK(y_); \ - set(ctx, res, signed_integer_operation(x_, y_)); \ + set(ctx, res, unsigned_integer_operation(x_, y_)); \ } \ break; \ case GRN_DB_INT32 : \ -------------- next part -------------- HTML����������������������������... Download