1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-16 20:23:18 +03:00

bug#16125 - ndb bitfield of exact 32 bits, incorrect assertion (i.e. only noticable in debug compiled)

This commit is contained in:
jonas@perch.ndb.mysql.com
2006-01-02 14:38:38 +01:00
parent eaa777eee2
commit 805655d889
3 changed files with 16 additions and 2 deletions

View File

@@ -814,7 +814,7 @@ inline void
BitmaskImpl::getField(unsigned size, const Uint32 src[],
unsigned pos, unsigned len, Uint32 dst[])
{
assert(pos + len < (size << 5));
assert(pos + len <= (size << 5));
src += (pos >> 5);
Uint32 offset = pos & 31;
@@ -833,7 +833,7 @@ inline void
BitmaskImpl::setField(unsigned size, Uint32 dst[],
unsigned pos, unsigned len, const Uint32 src[])
{
assert(pos + len < (size << 5));
assert(pos + len <= (size << 5));
dst += (pos >> 5);
Uint32 offset = pos & 31;