mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
storage/rocksdb/rdb_datadic.cc failed to compile on big endian machines (wrong usage of static_assert)
This commit is contained in:
@@ -1303,7 +1303,7 @@ static int rdb_unpack_floating_point(
|
|||||||
// On little-endian, swap the bytes around
|
// On little-endian, swap the bytes around
|
||||||
swap_func(dst, tmp);
|
swap_func(dst, tmp);
|
||||||
#else
|
#else
|
||||||
static_assert(swap_func == nullptr, "Assuming that no swapping is needed.");
|
DBUG_ASSERT(swap_func == nullptr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return UNPACK_SUCCESS;
|
return UNPACK_SUCCESS;
|
||||||
|
Reference in New Issue
Block a user