genome / pindel

Pindel can detect breakpoints of large deletions, medium sized insertions, inversions, tandem duplications and other structural variants at single-based resolution from next-gen sequence data. It uses a pattern growth approach to identify the breakpoints of these variants from paired-end short reads.
GNU General Public License v3.0
162 stars 89 forks source link

typecast abs() to long int to resolve ambiguity in g++ 7.3.0 #102

Open lmogil opened 5 years ago

lmogil commented 5 years ago

I couldn't build without this change. Error message below.

bddata.cpp:192:38: error: call of overloaded 'abs(unsigned int)' is ambiguous
    if (abs(second.PosB - second.PosB1) > distance) {
                                      ^
In file included from /usr/include/c++/7/cstdlib:75:0,
                 from /usr/include/c++/7/bits/stl_algo.h:59,
                 from /usr/include/c++/7/algorithm:62,
                 from bddata.cpp:1:
/usr/include/stdlib.h:837:12: note: candidate: int abs(int)
 extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;