mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
ndb - bitfields - more tests, now passes all api tests!!
ndb/include/kernel/ndb_limits.h: #define for max null bits ndb/include/kernel/signaldata/TupFrag.hpp: Error code for too many nullbits ndb/include/util/Bitmask.hpp: Cosmetic fix ndb/src/common/util/Bitmask.cpp: handle (pos % 32) == 0 more unit tests ndb/src/kernel/blocks/dbtup/DbtupMeta.cpp: Check bitmask overflow ndb/src/ndbapi/ndberror.c: New error code ndb/test/ndbapi/testBitfield.cpp: Update test program ndb/test/run-test/daily-basic-tests.txt: Add testBitfield to autotest
This commit is contained in:
@@ -818,7 +818,7 @@ BitmaskImpl::getField(unsigned size, const Uint32 src[],
|
||||
|
||||
src += (pos >> 5);
|
||||
Uint32 offset = pos & 31;
|
||||
dst[0] = (* src >> offset) & (len >= 32 ? ~0 : (1 << len) - 1);
|
||||
* dst = (* src >> offset) & (len >= 32 ? ~0 : (1 << len) - 1);
|
||||
|
||||
if(offset + len <= 32)
|
||||
{
|
||||
|
Reference in New Issue
Block a user