Skip to content
Snippets Groups Projects
Verified Commit d3f0d325 authored by Tomas Krizek's avatar Tomas Krizek
Browse files

lib/rplan.c: replace asserts

parent c0f32448
No related branches found
No related tags found
1 merge request!1146lib/utils: define kr_require(), kr_assume() macros
......@@ -166,8 +166,8 @@ static struct kr_query *kr_rplan_push_query(struct kr_rplan *rplan,
qry->reorder = qry->flags.REORDER_RR ? kr_rand_bytes(sizeof(qry->reorder)) : 0;
assert((rplan->pending.len == 0 && rplan->resolved.len == 0)
== (rplan->initial == NULL));
(void)!kr_assume((rplan->pending.len == 0 && rplan->resolved.len == 0)
== (rplan->initial == NULL));
if (rplan->initial == NULL) {
rplan->initial = qry;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment