From 2fd1772503c84bf9fd297993c51d5d45cb5ba079 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Tue, 18 Mar 2025 13:14:47 +0300 Subject: [PATCH] =?UTF-8?q?mdbx-tests:=20=D1=83=D1=81=D1=82=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BD=D0=B5=D0=B2=D1=8B=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=BD=D0=B5=D0=BD=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=B4?= =?UTF-8?q?=D0=BE=D1=81=D1=82=D1=83=D0=BF=D0=B0=20=D0=B2=20extra/close-dbi?= =?UTF-8?q?=20=D0=B4=D0=BB=D1=8F=20UBSAN.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/extra/early_close_dbi.c++ | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/extra/early_close_dbi.c++ b/test/extra/early_close_dbi.c++ index cb5d1b6d..0ed94fb6 100644 --- a/test/extra/early_close_dbi.c++ +++ b/test/extra/early_close_dbi.c++ @@ -65,13 +65,13 @@ int doit() { assert(err == MDBX_SUCCESS); err = mdbx_get(transaction, textindex, &mdbxkey, &mdbxval); assert(err == MDBX_SUCCESS); - assert(testval == *reinterpret_cast(mdbxval.iov_base)); + assert(testval == mdbx::slice(mdbxval).as_uint64()); err = mdbx_put(transaction, textindex, &mdbxkey, &mdbxput, MDBX_NOOVERWRITE); assert(err == MDBX_KEYEXIST); err = mdbx_get(transaction, textindex, &mdbxkey, &mdbxval); assert(err == MDBX_SUCCESS); - assert(testval == *reinterpret_cast(mdbxval.iov_base)); + assert(testval == mdbx::slice(mdbxval).as_uint64()); err = mdbx_dbi_flags_ex(transaction, textindex, &dbi_flags, &dbi_state); assert(err == MDBX_SUCCESS); @@ -87,7 +87,7 @@ int doit() { assert(err == MDBX_SUCCESS); err = mdbx_get(transaction, textindex, &mdbxkey, &mdbxval); assert(err == MDBX_SUCCESS); - assert(testval == *reinterpret_cast(mdbxval.iov_base)); + assert(testval == mdbx::slice(mdbxval).as_uint64()); err = mdbx_dbi_close(environment, textindex); assert(err == MDBX_SUCCESS);