aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2013-07-10 18:14:29 +0000
committerdrh <drh@noemail.net>2013-07-10 18:14:29 +0000
commit8f8c65f79bbea1e125fe02042c57cf963288abc5 (patch)
tree39c872c0e18e4738fe4b668147c590f4f3a23d09 /src
parent49afe3aaa067eb050d0e831d351683c8251cba42 (diff)
downloadsqlite-8f8c65f79bbea1e125fe02042c57cf963288abc5.tar.gz
sqlite-8f8c65f79bbea1e125fe02042c57cf963288abc5.zip
Fix harmless compiler warnings in the progress callback logic.
FossilOrigin-Name: 908141d5bf7a9ad8f40c2332476847733eca7fdc
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
-rw-r--r--src/sqliteInt.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 12a1ad19b..fe30d43f2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1298,7 +1298,7 @@ void sqlite3_progress_handler(
sqlite3_mutex_enter(db->mutex);
if( nOps>0 ){
db->xProgress = xProgress;
- db->nProgressOps = nOps;
+ db->nProgressOps = (unsigned)nOps;
db->pProgressArg = pArg;
}else{
db->xProgress = 0;
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 5e3b4d0a0..d1d73cd5b 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -936,7 +936,7 @@ struct sqlite3 {
#ifndef SQLITE_OMIT_PROGRESS_CALLBACK
int (*xProgress)(void *); /* The progress callback */
void *pProgressArg; /* Argument to the progress callback */
- int nProgressOps; /* Number of opcodes for progress callback */
+ unsigned nProgressOps; /* Number of opcodes for progress callback */
#endif
#ifndef SQLITE_OMIT_VIRTUALTABLE
int nVTrans; /* Allocated size of aVTrans */