Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

stop clang from whining about asserts

we now use up to exactly clsid 255, which is the max size of a byte so the
assertion can't fail.
commit f0358c023e79d0ffc320222afe8a978f528e52a3 1 parent 5ddccfe
@dormando dormando authored
Showing with 0 additions and 4 deletions.
  1. +0 −4 items.c
View
4 items.c
@@ -271,7 +271,6 @@ bool item_size_ok(const size_t nkey, const int flags, const int nbytes) {
static void do_item_link_q(item *it) { /* item is the new head */
item **head, **tail;
- assert(it->slabs_clsid < LARGEST_ID);
assert((it->it_flags & ITEM_SLABBED) == 0);
head = &heads[it->slabs_clsid];
@@ -295,7 +294,6 @@ static void item_link_q(item *it) {
static void do_item_unlink_q(item *it) {
item **head, **tail;
- assert(it->slabs_clsid < LARGEST_ID);
head = &heads[it->slabs_clsid];
tail = &tails[it->slabs_clsid];
@@ -1094,7 +1092,6 @@ int init_lru_maintainer(void) {
static void crawler_link_q(item *it) { /* item is the new tail */
item **head, **tail;
- assert(it->slabs_clsid < LARGEST_ID);
assert(it->it_flags == 1);
assert(it->nbytes == 0);
@@ -1116,7 +1113,6 @@ static void crawler_link_q(item *it) { /* item is the new tail */
static void crawler_unlink_q(item *it) {
item **head, **tail;
- assert(it->slabs_clsid < LARGEST_ID);
head = &heads[it->slabs_clsid];
tail = &tails[it->slabs_clsid];

1 comment on commit f0358c0

@fengdouzhe

hello

Please sign in to comment.
Something went wrong with that request. Please try again.