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