/ Check-in [6a2e0725]
Login

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

Overview
Comment:Fix compiler warnings in test_hexio.c.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:6a2e0725c20520aa90abb2bc04037ee7acebb930
User & Date: drh 2009-12-02 18:03:58
Context
2009-12-02
18:16
Fix an uninitialized value read in sqlite3async.c. check-in: 1cf2136c user: dan tags: trunk
18:03
Fix compiler warnings in test_hexio.c. check-in: 6a2e0725 user: drh tags: trunk
16:09
Modify a test in fts3b.test to reflect the fact that the docid field may now be updated. check-in: ef5b7450 user: dan tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/test_hexio.c.

348
349
350
351
352
353
354
355
356
357
358
359
360
361
362

  if( objc!=3 ){
    Tcl_WrongNumArgs(interp, 1, objv, "BLOB VARNAME");
    return TCL_ERROR;
  }
  zBlob = Tcl_GetByteArrayFromObj(objv[1], &nBlob);

  nVal = getFts3Varint(zBlob, (sqlite3_uint64 *)(&iVal));
  Tcl_ObjSetVar2(interp, objv[2], 0, Tcl_NewWideIntObj(iVal), 0);
  Tcl_SetObjResult(interp, Tcl_NewIntObj(nVal));
  return TCL_OK;
}


/*







|







348
349
350
351
352
353
354
355
356
357
358
359
360
361
362

  if( objc!=3 ){
    Tcl_WrongNumArgs(interp, 1, objv, "BLOB VARNAME");
    return TCL_ERROR;
  }
  zBlob = Tcl_GetByteArrayFromObj(objv[1], &nBlob);

  nVal = getFts3Varint((char*)zBlob, (sqlite3_int64 *)(&iVal));
  Tcl_ObjSetVar2(interp, objv[2], 0, Tcl_NewWideIntObj(iVal), 0);
  Tcl_SetObjResult(interp, Tcl_NewIntObj(nVal));
  return TCL_OK;
}


/*