[Groonga-commit] groonga/groonga at 91fa69d [master] clang: suppress warnings

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jun 11 17:08:36 JST 2013


Kouhei Sutou	2013-06-11 17:08:36 +0900 (Tue, 11 Jun 2013)

  New Revision: 91fa69d49890ef459d4735485f7e46b700fa32f5
  https://github.com/groonga/groonga/commit/91fa69d49890ef459d4735485f7e46b700fa32f5

  Message:
    clang: suppress warnings
    
    Remove needless "unsigned". Any character in the target string isn't
    compared in the function.

  Modified files:
    lib/tokenizer.c

  Modified: lib/tokenizer.c (+3 -3)
===================================================================
--- lib/tokenizer.c    2013-06-11 17:06:34 +0900 (d0eb3bb)
+++ lib/tokenizer.c    2013-06-11 17:08:36 +0900 (0767fd2)
@@ -251,9 +251,9 @@ grn_tokenizer_tokenized_delimiter_next(grn_ctx *ctx,
                                        grn_encoding encoding)
 {
   size_t char_length = 0;
-  const unsigned char *start = str_ptr;
-  const unsigned char *current;
-  const unsigned char *end = str_ptr + str_length;
+  const char *start = str_ptr;
+  const char *current;
+  const char *end = str_ptr + str_length;
   const char *next_start = NULL;
   unsigned int token_length;
   grn_tokenizer_status status;
-------------- next part --------------
HTML����������������������������...
Download 



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