aboutsummaryrefslogtreecommitdiff
path: root/ext/misc/dbdata.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2019-04-27 20:15:15 +0000
committerdan <dan@noemail.net>2019-04-27 20:15:15 +0000
commit1b16216f9eb297ddebc36fd83d3c3816baad0163 (patch)
tree2c28572f7bb9e0351a8f5bfae869a86eb3cff449 /ext/misc/dbdata.c
parent0aa01ee42cd9616fdca75f97b88e861651481d3c (diff)
downloadsqlite-1b16216f9eb297ddebc36fd83d3c3816baad0163.tar.gz
sqlite-1b16216f9eb297ddebc36fd83d3c3816baad0163.zip
Fix building the shell with SQLITE_OMIT_VIRTUAL_TABLE. And without SQLITE_ENABLE_DBPAGE_VTAB.
FossilOrigin-Name: 425d708c3908fe74f69b62e6dd1722a0018088977e12f14b312dad1df0fbb804
Diffstat (limited to 'ext/misc/dbdata.c')
-rw-r--r--ext/misc/dbdata.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/misc/dbdata.c b/ext/misc/dbdata.c
index 786369ce0..0e7f7d59c 100644
--- a/ext/misc/dbdata.c
+++ b/ext/misc/dbdata.c
@@ -75,7 +75,6 @@
#include "sqlite3ext.h"
typedef unsigned char u8;
-typedef unsigned long u32;
#endif
SQLITE_EXTENSION_INIT1
@@ -313,7 +312,7 @@ static unsigned int get_uint32(unsigned char *a){
*/
static int dbdataLoadPage(
DbdataCursor *pCsr, /* Cursor object */
- u32 pgno, /* Page number of page to load */
+ unsigned int pgno, /* Page number of page to load */
u8 **ppPage, /* OUT: pointer to page buffer */
int *pnPage /* OUT: Size of (*ppPage) in bytes */
){
@@ -556,7 +555,7 @@ static int dbdataNext(sqlite3_vtab_cursor *pCursor){
/* Load content from overflow pages */
if( nPayload>nLocal ){
sqlite3_int64 nRem = nPayload - nLocal;
- u32 pgnoOvfl = get_uint32(&pCsr->aPage[iOff]);
+ unsigned int pgnoOvfl = get_uint32(&pCsr->aPage[iOff]);
while( nRem>0 ){
u8 *aOvfl = 0;
int nOvfl = 0;