OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-link-grammar commits / 8703938

table_lookup(): Remove redundant check in assert()
870393811b0902e1301aa8c3e48f904a4402c585
by ampli <amirpli@gmail.com> · 2024-05-29T23:39:02.000Z

Changed files (1) +1 -1

link-grammar/parse/count.c +1 -1
……@@ -576,9 +576,9 @@ static Count_bin table_store(count_context_t *ctxt,
576576 Count_bin *e = table_lookup(ctxt, lw, rw, le, re, null_count, NULL);
577577 if (e != NULL)
578578 {
579 assert((e == NULL) || (hist_total(&c) == hist_total(e)),
580579 "Inconsistent count for w(%d,%d) tracon_id(%d,%d)",
581580 lw, rw, l_id, r_id);
581 assert((hist_total(&c) == hist_total(e)),
582582 return c;
583583 }
584584