[Groonga-commit] groonga/groonga [master] [solaris] suppress warnings for incompatible type

Back to archive index

null+****@clear***** null+****@clear*****
2012年 3月 4日 (日) 18:11:16 JST


Kouhei Sutou	2012-03-04 18:11:16 +0900 (Sun, 04 Mar 2012)

  New Revision: 5ba152f3277c21549c50753c2374a7a77b7d76ef

  Log:
    [solaris] suppress warnings for incompatible type

  Modified files:
    lib/store.c

  Modified: lib/store.c (+2 -2)
===================================================================
--- lib/store.c    2012-03-04 18:05:41 +0900 (80c77b8)
+++ lib/store.c    2012-03-04 18:11:16 +0900 (05aa530)
@@ -1161,8 +1161,8 @@ grn_ja_get_value(grn_ctx *ctx, grn_ja *ja, grn_id id, grn_obj *value)
       uint32_t el = len - sizeof(uint32_t);
       uint32_t pos = *((uint32_t *)(b + el));
       GRN_ASSERT(pos < el);
-      grn_bulk_write(ctx, value, b + pos, el - pos);
-      grn_bulk_write(ctx, value, b, pos);
+      grn_bulk_write(ctx, value, (char *)(b + pos), el - pos);
+      grn_bulk_write(ctx, value, (char *)(b), pos);
     } else {
       grn_bulk_write(ctx, value, v, len);
     }




Groonga-commit メーリングリストの案内
Back to archive index