1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Address some minor 32/64 bit issues. (CVS 1932)

FossilOrigin-Name: 6c9be972c1c289b657ba87db8db08fceb89b0171
This commit is contained in:
drh
2004-09-02 15:53:56 +00:00
parent 32fc1a5c51
commit c44af71c08
4 changed files with 14 additions and 14 deletions

View File

@@ -14,7 +14,7 @@
** other files are for internal use by SQLite and should not be
** accessed by users of the library.
**
** $Id: main.c,v 1.257 2004/09/02 14:57:08 drh Exp $
** $Id: main.c,v 1.258 2004/09/02 15:53:57 drh Exp $
*/
#include "sqliteInt.h"
#include "os.h"
@@ -578,8 +578,8 @@ static int sqliteDefaultBusyCallback(
static const short int totals[] =
{ 0, 1, 3, 8, 18, 33, 53, 78, 103, 128, 178, 228, 287};
# define NDELAY (sizeof(delays)/sizeof(delays[0]))
int timeout = (int)Timeout;
int delay, prior;
ptr timeout = (ptr)Timeout;
ptr delay, prior;
if( count <= NDELAY ){
delay = delays[count-1];
@@ -649,7 +649,7 @@ void sqlite3_progress_handler(
*/
int sqlite3_busy_timeout(sqlite3 *db, int ms){
if( ms>0 ){
sqlite3_busy_handler(db, sqliteDefaultBusyCallback, (void*)ms);
sqlite3_busy_handler(db, sqliteDefaultBusyCallback, (void*)(ptr)ms);
}else{
sqlite3_busy_handler(db, 0, 0);
}