summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2010-02-24 14:29:22 -0500
committerChris Dyer <redpony@gmail.com>2010-02-24 14:29:22 -0500
commitf15676801ca706a4978f09417fa8f32097ad6e2f (patch)
tree1a63c632de1b90d851bc5e5ff091f4ca81a8476f
parent3a7bca942d838f945c1cd0cbe5977e20c61ebc2d (diff)
prevent assert bugword-alignment
-rw-r--r--decoder/kbest.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/decoder/kbest.h b/decoder/kbest.h
index cd9b6c2b..fcd40fcd 100644
--- a/decoder/kbest.h
+++ b/decoder/kbest.h
@@ -188,7 +188,8 @@ namespace KBest {
if (new_d) {
cand->push_back(new_d);
std::push_heap(cand->begin(), cand->end(), HeapCompare());
- assert(ds->insert(new_d).second); // insert into uniqueness set, sanity check
+ bool inserted = ds->insert(new_d).second; // insert into uniqueness set
+ assert(inserted);
}
}
}