/ Check-in [ead4762d]
Login

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

Overview
Comment:Fix harmless compiler warning.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ead4762dfcd284127e60483e14f88aa4f4f034c2e1efb68a150359ba8f307776
User & Date: mistachkin 2018-07-22 20:24:38
Context
2018-07-22
21:08
Another minor revision to the 'fulltestonly' set of tests. check-in: 61f8e2a4 user: mistachkin tags: trunk
20:24
Fix harmless compiler warning. check-in: ead4762d user: mistachkin tags: trunk
06:25
In the Win32 VFS, when truncating a file, unmap it first. check-in: 21510a66 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/test_window.c.

   147    147     if( objc!=7 ){
   148    148       Tcl_WrongNumArgs(interp, 1, objv, "DB NAME XSTEP XFINAL XVALUE XINVERSE");
   149    149       return TCL_ERROR;
   150    150     }
   151    151   
   152    152     if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR;
   153    153     zName = Tcl_GetString(objv[2]);
   154         -  pNew = ckalloc(sizeof(TestWindow));
          154  +  pNew = (TestWindow*)ckalloc(sizeof(TestWindow));
   155    155     memset(pNew, 0, sizeof(TestWindow));
   156    156     pNew->xStep = Tcl_DuplicateObj(objv[3]);
   157    157     pNew->xFinal = Tcl_DuplicateObj(objv[4]);
   158    158     pNew->xValue = Tcl_DuplicateObj(objv[5]);
   159    159     pNew->xInverse = Tcl_DuplicateObj(objv[6]);
   160    160     pNew->interp = interp;
   161    161