/ Check-in [a6c31154]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a harmless compiler warning.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:a6c3115483d597fc77ab19fdcfd1d3437cad7e467081ad8c5315fb98c115eed9
User & Date: drh 2018-02-09 15:04:51
Context
2018-02-09
15:42
Make the tests in func6.test more robust against implementation changes. check-in: b685d323 user: dan tags: trunk
15:04
Fix a harmless compiler warning. check-in: a6c31154 user: drh tags: trunk
2018-02-08
01:00
Enhance sqlite3ErrStr() to include several more error codes. check-in: ad5d3bdc user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to tool/lempar.c.

   507    507     if( stateno>YY_MAX_SHIFT ) return stateno;
   508    508     assert( stateno <= YY_SHIFT_COUNT );
   509    509   #if defined(YYCOVERAGE)
   510    510     yycoverage[stateno][iLookAhead] = 1;
   511    511   #endif
   512    512     do{
   513    513       i = yy_shift_ofst[stateno];
   514         -    assert( i>=0 && i+YYNTOKEN<=sizeof(yy_lookahead)/sizeof(yy_lookahead[0]) );
          514  +    assert( i>=0 );
          515  +    assert( i+YYNTOKEN<=(int)sizeof(yy_lookahead)/sizeof(yy_lookahead[0]) );
   515    516       assert( iLookAhead!=YYNOCODE );
   516    517       assert( iLookAhead < YYNTOKEN );
   517    518       i += iLookAhead;
   518    519       if( yy_lookahead[i]!=iLookAhead ){
   519    520   #ifdef YYFALLBACK
   520    521         YYCODETYPE iFallback;            /* Fallback token */
   521    522         if( iLookAhead<sizeof(yyFallback)/sizeof(yyFallback[0])