[Groonga-commit] groonga/groonga at 7f33c5c [master] Use const

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Apr 18 10:10:47 JST 2018


Kouhei Sutou	2018-04-18 10:10:47 +0900 (Wed, 18 Apr 2018)

  New Revision: 7f33c5c941c8774ea7e2a035de12e43e4530a4d9
  https://github.com/groonga/groonga/commit/7f33c5c941c8774ea7e2a035de12e43e4530a4d9

  Message:
    Use const

  Modified files:
    lib/normalizer.c

  Modified: lib/normalizer.c (+1 -1)
===================================================================
--- lib/normalizer.c    2018-04-17 23:15:40 +0900 (ec541cc2a)
+++ lib/normalizer.c    2018-04-18 10:10:47 +0900 (af75019a2)
@@ -1023,7 +1023,7 @@ utf8_normalize(grn_ctx *ctx,
           unsigned char unified_kana[3];
           unsigned char unified_kana_case[3];
           unsigned char unified_kana_voiced_sound_mark[3];
-          unsigned char unified_hyphen[] = "-";
+          const unsigned char unified_hyphen[] = {'-'};
 
           if (options->unify_kana &&
               char_type == GRN_CHAR_KATAKANA &&
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180418/574f253b/attachment.htm 



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