/ Check-in [60c694c1]
Login

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

Overview
Comment:Fix a harmless compiler warning in zipfile.c
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 60c694c1ab26a7a096f17ccea5a93ecda0f9f2113ab5fdc8b17dbffc787724fc
User & Date: drh 2018-01-10 19:50:40
Context
2018-01-10
23:29
Add the ".once -e" and ".once -x" commands to the CLI, and the ".excel" command that is an alias for ".once -x". check-in: a6ed5ab9 user: drh tags: trunk
21:41
Add support for the ".excel" command (and ".once -e" and ".once -x") in the CLI. check-in: 23fa7c57 user: drh tags: excel-shell-cmd
19:50
Fix a harmless compiler warning in zipfile.c check-in: 60c694c1 user: drh tags: trunk
19:15
Include RTREE in the default CLI build. check-in: 6a6a3d49 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/misc/zipfile.c.

  1190   1190   }
  1191   1191   
  1192   1192   /*
  1193   1193   ** Both (const char*) arguments point to nul-terminated strings. Argument
  1194   1194   ** nB is the value of strlen(zB). This function returns 0 if the strings are
  1195   1195   ** identical, ignoring any trailing '/' character in either path.  */
  1196   1196   static int zipfileComparePath(const char *zA, const char *zB, int nB){
  1197         -  int nA = strlen(zA);
         1197  +  int nA = (int)strlen(zA);
  1198   1198     if( zA[nA-1]=='/' ) nA--;
  1199   1199     if( zB[nB-1]=='/' ) nB--;
  1200   1200     if( nA==nB && memcmp(zA, zB, nA)==0 ) return 0;
  1201   1201     return 1;
  1202   1202   }
  1203   1203   
  1204   1204   /*
................................................................................
  1521   1521     char **pzErrMsg, 
  1522   1522     const sqlite3_api_routines *pApi
  1523   1523   ){
  1524   1524     SQLITE_EXTENSION_INIT2(pApi);
  1525   1525     (void)pzErrMsg;  /* Unused parameter */
  1526   1526     return zipfileRegister(db);
  1527   1527   }
  1528         -