jts / sga

de novo sequence assembler using string graphs
http://genome.cshlp.org/content/22/3/549
237 stars 82 forks source link

Fix error: call to 'abs' is ambiguous #148

Closed sjackman closed 6 years ago

sjackman commented 6 years ago

An unsigned int minus a signed int yields an unsigned int. Calling abs on an unsigned int is ambiguous. Cast the unsigned int to a signed int before calling abs.

Fixes https://github.com/jts/sga/issues/141

sjackman commented 6 years ago

Thanks for merging, Jared. Care to tag a point release of SGA to fix this issue, when you get a moment?

sjackman commented 6 years ago

SGA is in Brewsci/bio now, with precompiled binary packages (bottles) for both Linux and macOS. The bottles are easiest to install using Linuxbrew or Homebrew, but are also available for download separately and may be used without Brew: https://bintray.com/linuxbrew/bottles-bio/sga#files