mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-30 22:47:16 +08:00
mdbx-test: minor fix for MSVC-2015.
Change-Id: I631009ffe0b04428026492d1cab691b58fdd160a
This commit is contained in:
parent
9720ed39f5
commit
b6085afb5a
@ -198,13 +198,13 @@ void __hot maker::pair(serial_t serial, const buffer &key, buffer &value,
|
|||||||
|
|
||||||
void maker::setup(const config::actor_params_pod &actor, unsigned actor_id,
|
void maker::setup(const config::actor_params_pod &actor, unsigned actor_id,
|
||||||
unsigned thread_number) {
|
unsigned thread_number) {
|
||||||
#if defined(_MSC_VER) && _MSC_VER < 1900
|
#if !defined(_MSC_VER) || _MSC_VER > 1900
|
||||||
assert(unsigned(MDBX_INTEGERKEY | MDBX_REVERSEKEY | MDBX_DUPSORT |
|
|
||||||
MDBX_INTEGERDUP | MDBX_REVERSEDUP) < UINT16_MAX);
|
|
||||||
#else
|
|
||||||
static_assert(unsigned(MDBX_INTEGERKEY | MDBX_REVERSEKEY | MDBX_DUPSORT |
|
static_assert(unsigned(MDBX_INTEGERKEY | MDBX_REVERSEKEY | MDBX_DUPSORT |
|
||||||
MDBX_INTEGERDUP | MDBX_REVERSEDUP) < UINT16_MAX,
|
MDBX_INTEGERDUP | MDBX_REVERSEDUP) < UINT16_MAX,
|
||||||
"WTF?");
|
"WTF?");
|
||||||
|
#else
|
||||||
|
assert(unsigned(MDBX_INTEGERKEY | MDBX_REVERSEKEY | MDBX_DUPSORT |
|
||||||
|
MDBX_INTEGERDUP | MDBX_REVERSEDUP) < UINT16_MAX);
|
||||||
#endif
|
#endif
|
||||||
key_essentials.flags =
|
key_essentials.flags =
|
||||||
actor.table_flags &
|
actor.table_flags &
|
||||||
@ -315,16 +315,16 @@ void __hot maker::mk_begin(const serial_t serial, const essentials ¶ms,
|
|||||||
|
|
||||||
void __hot maker::mk_continue(const serial_t serial, const essentials ¶ms,
|
void __hot maker::mk_continue(const serial_t serial, const essentials ¶ms,
|
||||||
result &out) {
|
result &out) {
|
||||||
#if defined(_MSC_VER) && _MSC_VER < 1900
|
#if !defined(_MSC_VER) || _MSC_VER > 1900
|
||||||
assert((essentials::prng_fill_flag &
|
|
||||||
unsigned(MDBX_DUPSORT | MDBX_DUPFIXED | MDBX_INTEGERKEY |
|
|
||||||
MDBX_INTEGERDUP | MDBX_REVERSEKEY | MDBX_REVERSEDUP)) == 0);
|
|
||||||
#else
|
|
||||||
static_assert(
|
static_assert(
|
||||||
(essentials::prng_fill_flag &
|
(essentials::prng_fill_flag &
|
||||||
unsigned(MDBX_DUPSORT | MDBX_DUPFIXED | MDBX_INTEGERKEY |
|
unsigned(MDBX_DUPSORT | MDBX_DUPFIXED | MDBX_INTEGERKEY |
|
||||||
MDBX_INTEGERDUP | MDBX_REVERSEKEY | MDBX_REVERSEDUP)) == 0,
|
MDBX_INTEGERDUP | MDBX_REVERSEKEY | MDBX_REVERSEDUP)) == 0,
|
||||||
"WTF?");
|
"WTF?");
|
||||||
|
#else
|
||||||
|
assert((essentials::prng_fill_flag &
|
||||||
|
unsigned(MDBX_DUPSORT | MDBX_DUPFIXED | MDBX_INTEGERKEY |
|
||||||
|
MDBX_INTEGERDUP | MDBX_REVERSEKEY | MDBX_REVERSEDUP)) == 0);
|
||||||
#endif
|
#endif
|
||||||
out.value.iov_base = out.bytes;
|
out.value.iov_base = out.bytes;
|
||||||
if (params.flags & (MDBX_INTEGERKEY | MDBX_INTEGERDUP)) {
|
if (params.flags & (MDBX_INTEGERKEY | MDBX_INTEGERDUP)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user