Skip to content

Commit

Permalink
Silence new warning, update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
DerrickWood committed Jan 19, 2023
1 parent 9c590c6 commit 493fcb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### Fixed
- Bug that caused infinite loop when sequences had taxid 0 (thanks to R. Charles)
- Silenced new warning in GCC 11

## [2.1.2] - 2021-05-10

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/compact_hash.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ CompactHashTable::CompactHashTable(size_t capacity, size_t key_bits, size_t valu
omp_init_lock(&zone_locks_[i]);
try {
table_ = new CompactHashCell[capacity_];
} catch (std::bad_alloc ex) {
} catch (std::bad_alloc &ex) {
std::cerr << "Failed attempt to allocate " << (sizeof(*table_) * capacity_) << "bytes;\n"
<< "you may not have enough free memory to build this database.\n"
<< "Perhaps increasing the k-mer length, or reducing memory usage from\n"
Expand Down

0 comments on commit 493fcb5

Please sign in to comment.