/ Check-in [90cfeaf7]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

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

Overview
Comment:Explicitly cast an argument to printf() to (int), in case the result of the pointer arithmetic expression is a 64-bit integer on some platforms.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 90cfeaf7b68eebc2cd75bc60b1bb86823646fe30
User & Date: dan 2011-06-24 18:43:23
Context
2011-06-25
01:14
Support using nmake via cmd.exe, allow Tcl related variables to be overridden via the environment, and add 'dll' to the 'all' target. check-in: 0cb0f306 user: mistachkin tags: trunk
2011-06-24
18:43
Explicitly cast an argument to printf() to (int), in case the result of the pointer arithmetic expression is a 64-bit integer on some platforms. check-in: 90cfeaf7 user: dan tags: trunk
13:50
Fix a Windows line ending issue in a test case that was causing an incrblob test to fail. check-in: afbe9023 user: shaneh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/build.c.

  2787   2787       ** the zStmt variable
  2788   2788       */
  2789   2789       if( pStart ){
  2790   2790         assert( pEnd!=0 );
  2791   2791         /* A named index with an explicit CREATE INDEX statement */
  2792   2792         zStmt = sqlite3MPrintf(db, "CREATE%s INDEX %.*s",
  2793   2793           onError==OE_None ? "" : " UNIQUE",
  2794         -        pEnd->z - pName->z + 1,
         2794  +        (int)(pEnd->z - pName->z) + 1,
  2795   2795           pName->z);
  2796   2796       }else{
  2797   2797         /* An automatic index created by a PRIMARY KEY or UNIQUE constraint */
  2798   2798         /* zStmt = sqlite3MPrintf(""); */
  2799   2799         zStmt = 0;
  2800   2800       }
  2801   2801