[Groonga-commit] groonga/groonga at 656a959 [master] Fix wrong type

Back to archive index

Kouhei Sutou null+****@clear*****
Mon May 13 17:33:45 JST 2013


Kouhei Sutou	2013-05-13 17:33:45 +0900 (Mon, 13 May 2013)

  New Revision: 656a959d9d0fa2b8c2b66482fbcae541feb01662
  https://github.com/groonga/groonga/commit/656a959d9d0fa2b8c2b66482fbcae541feb01662

  Message:
    Fix wrong type
    
    It reduces needless cast.

  Modified files:
    lib/db.c

  Modified: lib/db.c (+1 -1)
===================================================================
--- lib/db.c    2013-05-09 19:04:03 +0900 (631cd27)
+++ lib/db.c    2013-05-13 17:33:45 +0900 (42805de)
@@ -5275,7 +5275,7 @@ grn_obj_set_value_column_var_size_vector(grn_ctx *ctx, grn_obj *obj, grn_id id,
           const char *value_ptr = head + v->offset;
           int value_length = v->length;
           grn_id tid;
-          if (range != v->domain) {
+          if (lexicon->header.domain != v->domain) {
             GRN_BULK_REWIND(&cast_buf);
             GRN_BULK_REWIND(&value_buf);
             grn_bulk_write(ctx, &value_buf, value_ptr, value_length);
-------------- next part --------------
HTML����������������������������...
Download 



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