[Groonga-commit] groonga/groonga at d19b048 [master] clang: suppress a warning

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jun 11 16:53:17 JST 2013


Kouhei Sutou	2013-06-11 16:53:17 +0900 (Tue, 11 Jun 2013)

  New Revision: d19b048a5194f77cc44eea88a745953ba784a1a4
  https://github.com/groonga/groonga/commit/d19b048a5194f77cc44eea88a745953ba784a1a4

  Message:
    clang: suppress a warning
    
    Use uint32_t for length.
    
        lib/token.c:286:29: warning: passing 'int32_t *'
              (aka 'int *') to parameter of type 'unsigned int *' converts between
              pointers to integer types with different sign [-Wpointer-sign]
                                    &(tokenizer->len));
                                    ^~~~~~~~~~~~~~~~~

  Modified files:
    lib/token.c

  Modified: lib/token.c (+1 -1)
===================================================================
--- lib/token.c    2013-06-11 16:51:31 +0900 (29b4fb8)
+++ lib/token.c    2013-06-11 16:53:17 +0900 (118ef73)
@@ -238,7 +238,7 @@ typedef struct {
   const unsigned char *next;
   const unsigned char *end;
   const uint_least8_t *ctypes;
-  int32_t len;
+  uint32_t len;
   uint32_t tail;
 } grn_ngram_tokenizer;
 
-------------- next part --------------
HTML����������������������������...
Download 



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