udoprog/c10t

Don't call abs() on unsigned integer

evildeeds opened this issue · 0 comments

src/image/image_base.cpp:43:23: error: call of overloaded ‘abs(pos_t)’ is ambiguous
int dx = abs(x2-x1)
$ gcc --version
gcc (Gentoo 8.3.0-r1 p1.1) 8.3.0
$ eselect gcc list
 [1] x86_64-pc-linux-gnu-8.3.0 *

See #302 (comment)_