Kouhei Sutou
null+****@clear*****
Tue Mar 5 00:01:10 JST 2013
Kouhei Sutou 2013-03-05 00:01:10 +0900 (Tue, 05 Mar 2013) New Revision: d91b62db6fc8873eed5ccea8f01d6f74134da0d4 https://github.com/groonga/groonga/commit/d91b62db6fc8873eed5ccea8f01d6f74134da0d4 Log: Cast UInt64 to Int64 for -X Because -X must be negative. Modified files: lib/expr.c Modified: lib/expr.c (+2 -1) =================================================================== --- lib/expr.c 2013-03-05 00:00:25 +0900 (864e9a8) +++ lib/expr.c 2013-03-05 00:01:10 +0900 (0d96123) @@ -2287,7 +2287,8 @@ grn_proc_call(grn_ctx *ctx, grn_obj *proc, int nargs, grn_obj *caller) long long unsigned int x_; \ x_ = GRN_UINT64_VALUE(x); \ left_expression_check(x_); \ - GRN_UINT64_SET(ctx, res, integer_operation(x_)); \ + GRN_INT64_SET(ctx, res, integer_operation(x_)); \ + res->header.domain = GRN_DB_INT64; \ } \ break; \ case GRN_DB_FLOAT : \ -------------- next part -------------- HTML����������������������������...Download