[Groonga-commit] groonga/groonga [master] Fix too small type conversion

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Mar 4 18:24:46 JST 2013


Kouhei Sutou	2013-03-04 18:24:46 +0900 (Mon, 04 Mar 2013)

  New Revision: 2de8d7f25781c7b266ca1c4b0d7e9e78b59ce4ad
  https://github.com/groonga/groonga/commit/2de8d7f25781c7b266ca1c4b0d7e9e78b59ce4ad

  Log:
    Fix too small type conversion

  Modified files:
    lib/expr.c

  Modified: lib/expr.c (+1 -1)
===================================================================
--- lib/expr.c    2013-03-04 18:23:27 +0900 (1583031)
+++ lib/expr.c    2013-03-04 18:24:46 +0900 (b88145a)
@@ -2060,7 +2060,7 @@ grn_proc_call(grn_ctx *ctx, grn_obj *proc, int nargs, grn_obj *caller)
   case GRN_DB_INT16 :                                                   \
     {                                                                   \
       int16_t x_;                                                       \
-      x_ = GRN_INT8_VALUE(x);                                           \
+      x_ = GRN_INT16_VALUE(x);                                          \
       left_expression_check(x_);                                        \
       NUMERIC_ARITHMETIC_OPERATION_DISPATCH(GRN_INT16_SET,              \
                                             GRN_INT16_VALUE,            \
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index