|
|
@ -132,7 +132,7 @@ void mdb_midl_free(MDB_IDL ids) |
|
|
|
int mdb_midl_shrink( MDB_IDL *idp ) |
|
|
|
int mdb_midl_shrink( MDB_IDL *idp ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
MDB_IDL ids = *idp; |
|
|
|
MDB_IDL ids = *idp; |
|
|
|
if (ids[-1] > MDB_IDL_UM_MAX) { |
|
|
|
if (*(--ids) > MDB_IDL_UM_MAX) { |
|
|
|
ids = realloc(ids, (MDB_IDL_UM_MAX+1) * sizeof(MDB_ID)); |
|
|
|
ids = realloc(ids, (MDB_IDL_UM_MAX+1) * sizeof(MDB_ID)); |
|
|
|
*ids++ = MDB_IDL_UM_MAX; |
|
|
|
*ids++ = MDB_IDL_UM_MAX; |
|
|
|
*idp = ids; |
|
|
|
*idp = ids; |
|
|
|