1
0
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:
Alexander Barkov
2017-04-08 07:05:01 +04:00
parent 3cb28fad7a
commit 311503f328

View File

@@ -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;