Skip to content

Commit

Permalink
Fix sort() const problem introduced in 7d22984.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianwalenz committed Aug 24, 2020
1 parent cdb6b98 commit dd71f16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utgcns/utgcns.C
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ createPartitions_greedilyPartition(cnsParameters &params, tigInfo *tigs, uint32

// Sort the tigInfo by decreasing area.

sort(tigs, tigs + tigsLen, [](tigInfo &A, tigInfo &B) { return(A.consensusArea > B.consensusArea); });
sort(tigs, tigs + tigsLen, [](tigInfo const &A, tigInfo const &B) { return(A.consensusArea > B.consensusArea); });

// Grab the biggest tig (it's number 0) and compute a maximum area per partition.

Expand Down Expand Up @@ -253,7 +253,7 @@ createPartitions_outputPartitions(cnsParameters &params, tigInfo *tigs, uint32 t

// Sort by tigID.

sort(tigs, tigs + tigsLen, [](tigInfo &A, tigInfo &B) { return(A.tigID < B.tigID); });
sort(tigs, tigs + tigsLen, [](tigInfo const &A, tigInfo const &B) { return(A.tigID < B.tigID); });

// Build a mapping from readID to partitionID.

Expand Down

0 comments on commit dd71f16

Please sign in to comment.