archrelease: copy trunk to extra-x86_64
[arch-packages.git] / db5.3 / trunk / db-5.3.28-lemon_hash.patch
blob1556d5dd4ba0f20c4a0c71e249cdab9bbd75d07f
1 --- db-5.3.28/lang/sql/sqlite/tool/lemon.c.lemon_hash 2013-09-09 17:35:07.000000000 +0200
2 +++ db-5.3.28/lang/sql/sqlite/tool/lemon.c 2017-02-22 13:12:08.564106051 +0100
3 @@ -3428,7 +3428,7 @@
4 int maxdtlength; /* Maximum length of any ".datatype" field. */
5 char *stddt; /* Standardized name for a datatype */
6 int i,j; /* Loop counters */
7 - int hash; /* For hashing the name of a type */
8 + unsigned hash; /* For hashing the name of a type */
9 const char *name; /* Name of the parser */
11 /* Allocate and initialize types[] and allocate stddt[] */
12 @@ -3491,7 +3491,7 @@
13 break;
15 hash++;
16 - if( hash>=arraysize ) hash = 0;
17 + if( hash>=(unsigned)arraysize ) hash = 0;
19 if( types[hash]==0 ){
20 sp->dtnum = hash + 1;