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