93d352
--- db-5.3.28/lang/sql/sqlite/tool/lemon.c.lemon_hash	2013-09-09 17:35:07.000000000 +0200
93d352
+++ db-5.3.28/lang/sql/sqlite/tool/lemon.c	2017-02-22 13:12:08.564106051 +0100
93d352
@@ -3428,7 +3428,7 @@
93d352
   int maxdtlength;          /* Maximum length of any ".datatype" field. */
93d352
   char *stddt;              /* Standardized name for a datatype */
93d352
   int i,j;                  /* Loop counters */
93d352
-  int hash;                 /* For hashing the name of a type */
93d352
+  unsigned hash;            /* For hashing the name of a type */
93d352
   const char *name;         /* Name of the parser */
93d352
 
93d352
   /* Allocate and initialize types[] and allocate stddt[] */
93d352
@@ -3491,7 +3491,7 @@
93d352
         break;
93d352
       }
93d352
       hash++;
93d352
-      if( hash>=arraysize ) hash = 0;
93d352
+      if( hash>=(unsigned)arraysize ) hash = 0;
93d352
     }
93d352
     if( types[hash]==0 ){
93d352
       sp->dtnum = hash + 1;