Kouhei Sutou 2018-11-05 14:31:20 +0900 (Mon, 05 Nov 2018) Revision: 92de3bb8437d34fdd405d36ca98387b69f12fbb2 https://github.com/groonga/groonga/commit/92de3bb8437d34fdd405d36ca98387b69f12fbb2 Message: Use more suitable default value Modified files: lib/normalizer.c Modified: lib/normalizer.c (+1 -2) =================================================================== --- lib/normalizer.c 2018-11-05 14:28:09 +0900 (a96f34173) +++ lib/normalizer.c 2018-11-05 14:31:20 +0900 (3b3ae08c1) @@ -1134,7 +1134,6 @@ grn_nfkc_normalize_unify(grn_ctx *ctx, const unsigned char *current = data->string->normalized; const unsigned char *end = data->d; size_t i_byte; - size_t n_bytes = end - current; size_t i_character; unsigned char *unified = NULL; unsigned char *unified_end = NULL; @@ -1147,7 +1146,7 @@ grn_nfkc_normalize_unify(grn_ctx *ctx, uint64_t *unified_offsets = NULL; uint64_t *unified_offsets_current = NULL; unsigned int unified_n_characters = 0; - size_t unified_data_size = n_bytes; + size_t unified_data_size = data->ds; if (!(data->options->unify_kana || data->options->unify_kana_case || -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20181105/4c9f7327/attachment-0001.html>