fixed overly strict assert for 32bit
Former-commit-id: ce4891b33d65038bb0543eb2d3526c5310fee59b
This commit is contained in:
parent
0750f0f2e6
commit
8bccf9bf12
@ -901,7 +901,7 @@ public:
|
|||||||
void addref() const { refcount.fetch_add(1, std::memory_order_relaxed); }
|
void addref() const { refcount.fetch_add(1, std::memory_order_relaxed); }
|
||||||
unsigned release() const { return refcount.fetch_sub(1, std::memory_order_seq_cst) & ~(1U << 31); }
|
unsigned release() const { return refcount.fetch_sub(1, std::memory_order_seq_cst) & ~(1U << 31); }
|
||||||
} robj;
|
} robj;
|
||||||
static_assert(sizeof(redisObject) == 16, "object size is critical, don't increase");
|
static_assert(sizeof(redisObject) <= 16, "object size is critical, don't increase");
|
||||||
|
|
||||||
class redisObjectStack : public redisObjectExtended, public redisObject
|
class redisObjectStack : public redisObjectExtended, public redisObject
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user