OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-link-grammar commits / ed03595

table_lookup(): Print conflicting values in assert()
ed0359515d6f41e0dfcf7f0a4f904a74c664a7b4
by ampli <amirpli@gmail.com> · 2024-05-29T23:41:00.000Z

Changed files (1) +2 -2

link-grammar/parse/count.c +2 -2
……@@ -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 "Inconsistent count for w(%d,%d) tracon_id(%d,%d)",
580 lw, rw, l_id, r_id);
581579 assert((hist_total(&c) == hist_total(e)),
580 "Inconsistent count for w(%d,%d) tracon_id(%d,%d): %zd != %zd",
581 lw, rw, l_id, r_id, (ssize_t)hist_total(&c), (ssize_t)hist_total(e));
582582 return c;
583583 }
584584