change assert to debug_assert

This commit is contained in:
Robert Węcławski
2017-12-17 20:29:35 +01:00
parent a8ecfc86dd
commit 3c466892de

View File

@@ -61,7 +61,7 @@ impl<L> Table<L> where L: TableLevel {
/// Set number of entries in first table entry
fn set_entry_count(&mut self, count: u64) {
assert!(count <= ENTRY_COUNT as u64, "count can't be greater than ENTRY_COUNT");
debug_assert!(count <= ENTRY_COUNT as u64, "count can't be greater than ENTRY_COUNT");
self.entries[0].set_counter_bits(count);
}