Kouhei Sutou
null+****@clear*****
Wed May 11 10:23:33 JST 2016
Kouhei Sutou 2016-05-11 10:23:33 +0900 (Wed, 11 May 2016) New Revision: 0ebc0a79bc0306650676b32c4fbe7cb6d8905f46 https://github.com/groonga/groonga/commit/0ebc0a79bc0306650676b32c4fbe7cb6d8905f46 Message: Add missing cast size_t is unsigned. -size_t is also unsigned. We should cast to signed type before unary -. Modified files: lib/expr.c Modified: lib/expr.c (+2 -2) =================================================================== --- lib/expr.c 2016-05-11 10:20:28 +0900 (cd572c2) +++ lib/expr.c 2016-05-11 10:23:33 +0900 (03c5dcc) @@ -461,7 +461,7 @@ grn_expr_dfi_pop(grn_expr *expr) { if (GRN_BULK_VSIZE(&expr->dfi) >= sizeof(grn_expr_dfi)) { grn_expr_dfi *dfi; - GRN_BULK_INCR_LEN(&expr->dfi, -sizeof(grn_expr_dfi)); + GRN_BULK_INCR_LEN(&expr->dfi, -((ssize_t)(sizeof(grn_expr_dfi)))); dfi = (grn_expr_dfi *)GRN_BULK_CURR(&expr->dfi); expr->code0 = dfi->code; return dfi; @@ -552,7 +552,7 @@ exit : #define GRN_PTR_POP(obj,value) do {\ if (GRN_BULK_VSIZE(obj) >= sizeof(grn_obj *)) {\ - GRN_BULK_INCR_LEN((obj), -(sizeof(grn_obj *)));\ + GRN_BULK_INCR_LEN((obj), -((ssize_t)(sizeof(grn_obj *))));\ value = *(grn_obj **)(GRN_BULK_CURR(obj));\ } else {\ value = NULL;\ -------------- next part -------------- HTML����������������������������... Download