mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-08 04:34:12 +08:00
mdbx: avoid -Wint-to-pointer-cast
warnings while casting to mdbx_tid_t
(backport).
This commit is contained in:
parent
50ba4bc2f2
commit
8505203080
@ -20997,8 +20997,8 @@ __cold int mdbx_reader_list(const MDBX_env *env, MDBX_reader_list_func *func,
|
|||||||
reader_pages_retired))
|
reader_pages_retired))
|
||||||
: 0;
|
: 0;
|
||||||
}
|
}
|
||||||
rc = func(ctx, ++serial, i, pid, (mdbx_tid_t)tid, txnid, lag, bytes_used,
|
rc = func(ctx, ++serial, i, pid, (mdbx_tid_t)((intptr_t)tid), txnid, lag,
|
||||||
bytes_retained);
|
bytes_used, bytes_retained);
|
||||||
if (unlikely(rc != MDBX_SUCCESS))
|
if (unlikely(rc != MDBX_SUCCESS))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -21250,7 +21250,7 @@ __cold static txnid_t mdbx_kick_longlived_readers(MDBX_env *env,
|
|||||||
? pgno2bytes(env, (pgno_t)(head_retired - oldest_retired))
|
? pgno2bytes(env, (pgno_t)(head_retired - oldest_retired))
|
||||||
: 0;
|
: 0;
|
||||||
int rc = env->me_hsr_callback(
|
int rc = env->me_hsr_callback(
|
||||||
env, env->me_txn, pid, (mdbx_tid_t)tid, laggard,
|
env, env->me_txn, pid, (mdbx_tid_t)((intptr_t)tid), laggard,
|
||||||
(gap < UINT_MAX) ? (unsigned)gap : UINT_MAX, space, retry);
|
(gap < UINT_MAX) ? (unsigned)gap : UINT_MAX, space, retry);
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user