Skip to content

Commit

Permalink
SWARM 2.2.1: Fix memory allocation bug for d=1
Browse files Browse the repository at this point in the history
  • Loading branch information
torognes committed Oct 27, 2017
1 parent 5b3f33d commit 38ae5ce
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,10 @@ methods, here are some links:

## Version history##

### version 2.2.1 ###

**swarm** 2.2.1 fixes a memory allocation bug for d=1.

### version 2.2.0 ###

**swarm** 2.2.0 fixes several problems and improves usability.
Expand Down
5 changes: 4 additions & 1 deletion man/swarm.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" ============================================================================
.TH swarm 1 "October 17, 2017" "version 2.2.0" "USER COMMANDS"
.TH swarm 1 "October 27, 2017" "version 2.2.1" "USER COMMANDS"
.\" ============================================================================
.SH NAME
swarm \(em find clusters of nearly-identical nucleotide amplicons
Expand Down Expand Up @@ -389,6 +389,9 @@ New features and important modifications of \fBswarm\fR (short lived
or minor bug releases are not mentioned):
.RS
.TP
.BR v2.2.1\~ "released October 27, 2017"
Version 2.2.1 fixes a memory allocation bug for d=1.
.TP
.BR v2.2.0\~ "released October 17, 2017"
Version 2.2.0 fixes several problems and improves usability. Corrected
output to structure and uclust files when using fastidious
Expand Down
Binary file modified man/swarm_manual.pdf
Binary file not shown.
3 changes: 2 additions & 1 deletion src/algod1.cc
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,8 @@ void process_seed(int subseed)
{
if (global_hits_count + ti[t].hits_count > global_hits_alloc)
{
global_hits_alloc <<= 1;
while (global_hits_count + ti[t].hits_count > global_hits_alloc)
global_hits_alloc <<= 1;
global_hits_data = (int*)xrealloc(global_hits_data,
global_hits_alloc * sizeof(int));
}
Expand Down
2 changes: 1 addition & 1 deletion src/swarm.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
#define LINE_MAX 2048
#endif

#define SWARM_VERSION "2.2.0"
#define SWARM_VERSION "2.2.1"
#define WIDTH 32
#define WIDTH_SHIFT 5
#define BLOCKWIDTH 32
Expand Down

1 comment on commit 38ae5ce

@torognes
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes issue #109.

Please sign in to comment.