typedef struct MDB_dhead { /* a dirty page */
SIMPLEQ_ENTRY(MDB_dpage) md_next; /* queue of dirty pages */
MDB_page *md_parent;
- int md_pi; /* parent index */
+ unsigned md_pi; /* parent index */
int md_num;
} MDB_dhead;
typedef struct MDB_pageparent {
MDB_page *mp_page;
MDB_page *mp_parent;
- int mp_pi;
+ unsigned mp_pi;
} MDB_pageparent;
-static MDB_dpage *mdb_newpage(MDB_txn *txn, MDB_page *parent, int parent_idx, int num);
+static MDB_dpage *mdb_newpage(MDB_txn *txn, MDB_page *parent, unsigned int parent_idx, int num);
static int mdb_touch(MDB_txn *txn, MDB_pageparent *mp);
typedef struct MDB_ppage { /* ordered list of pages */
/* Allocate new page(s) for writing */
static MDB_dpage *
-mdb_newpage(MDB_txn *txn, MDB_page *parent, int parent_idx, int num)
+mdb_newpage(MDB_txn *txn, MDB_page *parent, unsigned int parent_idx, int num)
{
MDB_dpage *dp;