Kouhei Sutou
null+****@clear*****
Thu Jan 14 18:12:03 JST 2016
Kouhei Sutou 2016-01-14 18:12:03 +0900 (Thu, 14 Jan 2016) New Revision: 9d4d87169d03469525f4f7dce4c25cca7ad4f9c2 https://github.com/groonga/groonga/commit/9d4d87169d03469525f4f7dce4c25cca7ad4f9c2 Message: hash: use cast to ensure 64bit uint Modified files: lib/hash.c Modified: lib/hash.c (+1 -1) =================================================================== --- lib/hash.c 2016-01-14 18:09:04 +0900 (9f061d1) +++ lib/hash.c 2016-01-14 18:12:03 +0900 (ed107e5) @@ -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\ - ((1UL << W_OF_KEY_IN_A_SEGMENT) * GRN_HASH_KEY_MAX_N_SEGMENTS - 1) + (((uint64_t)(1) << 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