From 3c79feca16f8dfc941ee5b1ba16ca632cc59fb5a Mon Sep 17 00:00:00 2001 From: Benjamin Buchfink Date: Thu, 23 Jan 2025 15:14:33 +0100 Subject: [PATCH] Fix casting operators --- .github/workflows/cmake.yml | 2 +- src/ChangeLog | 8 ++++---- src/dp/swipe/stat_cell.h | 6 ++++++ 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 83893593..4645faa3 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -23,7 +23,7 @@ jobs: strategy: matrix: # runner image list, https://github.com/actions/runner-images - os: [ ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, macos-15-large, macos-15, macos-14-large, macos-14, macos-13, macos-13-xlarge, macos-12, windows-2019, windows-2022 ] + os: [ ubuntu-24.04, macos-14-large, macos-14 ] steps: - uses: actions/checkout@v2 diff --git a/src/ChangeLog b/src/ChangeLog index f1427874..b0e745df 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -28,7 +28,7 @@ sequence identities >= 50% and processing the database in multiple super blocks. - Fixed a bug that could cause a crash in global ranking mode. -- Accession parsing rules applied to database sequences accessions for the +- Accession parsing rules applied to database sequence accessions for the purpose of matching them to accessions in the taxonomy mapping file are now by default also applied to the accessions in the mapping file (disable using `--no-parse-seqids`). @@ -60,13 +60,13 @@ file all exhibit the problem. - Fixed a bug that caused setting `--top 100` not to function correctly. - Fixed a bug that caused target coordinates not to be reported correctly in - the output of the realign workflow. + the output of the `realign` workflow. - Fixed a bug that did not permit using the '--memory-limit/-M' option for - the realign workflow. + the `realign` workflow. - Fixed an issue that could cause non-deterministic output in frameshift alignment mode. - Fixed a bug that could cause a crash when using the XML output format in - the view workflow. + the `view` workflow. - Added the sensitivity modes `--linclust-20` and `--linclust-40`. - Fixed an issue that could cause non-deterministic output for identically-scoring HSPs in the same target. diff --git a/src/dp/swipe/stat_cell.h b/src/dp/swipe/stat_cell.h index 459f910d..27a58029 100644 --- a/src/dp/swipe/stat_cell.h +++ b/src/dp/swipe/stat_cell.h @@ -65,6 +65,9 @@ struct ForwardCell { operator int32_t() const { return v; } + operator int32_t&() { + return v; + } ForwardCell(const int32_t v) : v(v), ident(0), @@ -123,6 +126,9 @@ struct BackwardCell { operator int32_t() const { return v; } + operator int32_t& () { + return v; + } BackwardCell(const int32_t v) : v(v), mismatch(0),