Commit 8e535ed2 authored by Niklas Haas's avatar Niklas Haas
Browse files

dither: suppress warning with NDEBUG

parent a374c931
......@@ -108,12 +108,15 @@ static void makegauss(struct ctx *k, unsigned int sizeb)
k->gauss[XY(k, gauss_size - 1 - gy, gauss_size - 1 - gx)] = v;
}
}
#ifndef NDEBUG
uint64_t total = 0;
for (index_t c = 0; c < k->size2; c++) {
uint64_t oldtotal = total;
total += k->gauss[c];
assert(total >= oldtotal);
}
#endif
}
static void setbit(struct ctx *k, index_t c)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment