[Groonga-commit] groonga/groonga at 3e96f4a [master] hash: use more small type

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Jan 14 18:09:04 JST 2016


Kouhei Sutou	2016-01-14 18:09:04 +0900 (Thu, 14 Jan 2016)

  New Revision: 3e96f4a5205e541b3ee62fac13ce239d5ab2876d
  https://github.com/groonga/groonga/commit/3e96f4a5205e541b3ee62fac13ce239d5ab2876d

  Message:
    hash: use more small type

  Modified files:
    lib/hash.c

  Modified: lib/hash.c (+1 -1)
===================================================================
--- lib/hash.c    2016-01-14 18:07:04 +0900 (fd5f96b)
+++ lib/hash.c    2016-01-14 18:09:04 +0900 (9f061d1)
@@ -1246,7 +1246,7 @@ grn_array_unblock(grn_ctx *ctx, grn_array *array)
 #define GRN_HASH_KEY_MAX_N_SEGMENTS 0x400
 #define W_OF_KEY_IN_A_SEGMENT 22
 #define GRN_HASH_KEY_MAX_TOTAL_SIZE\
-  ((1ULL << W_OF_KEY_IN_A_SEGMENT) * GRN_HASH_KEY_MAX_N_SEGMENTS - 1)
+  ((1UL << W_OF_KEY_IN_A_SEGMENT) * GRN_HASH_KEY_MAX_N_SEGMENTS - 1)
 #define IDX_MASK_IN_A_SEGMENT 0xfffff
 
 typedef struct {
-------------- next part --------------
HTML����������������������������...
Download 



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