Unfortunate Flexelinting

I have tried hard to make value tracking understand the code, but to
no avail. It seems, for example

	assert(n <= 56)

and later
	assert(n > 0)

will just lead to flexelint knowning 1? but not 56 as the limit.
parent b4c3cc11
......@@ -3371,6 +3371,9 @@ fellow_log_canfit(const struct fellow_dle entry[], unsigned n)
AN(n);
/*lint -e{662} possible out of bounds this is unfortunate, but see no
* way around
*/
entry += (n - 1);
while (n > 0) {
if (fellow_log_block_valid_last(entry))
......
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